Correct REST for restoring ressources

1 view
Skip to first unread message

lsolesen

unread,
Mar 6, 2010, 12:50:13 PM3/6/10
to Konstrukt
You delete a resource doing this:

ressource/1?delete

This will render the method renderHtmlDelete() where you put a form
which will have a form which will call a HTTP DELETE and call the
compontents DELETE()-method.

But how would you restore a deleted ressource again? Will you do like
this?

ressource/1?restore

But what should the proper HTTP REST be now?

troels knak-nielsen

unread,
Mar 6, 2010, 2:05:46 PM3/6/10
to kons...@googlegroups.com

I guess I would use a POST request. Essentially, you're updating an
existing resource here. The resource just happens to be in a deleted
state. The restore-subview makes good sense to me.

--
troels

Reply all
Reply to author
Forward
0 new messages