I am at a cross roads for developing some REST APIs and I have found no real discussion on the subject much less a firm defense of either.
It's my understand that with REST you have /<resource>/<action>
as your URL
So, to disable a user you would have:
PUT /user/disable
Seems reasonable. However, we have the debate going on out more basic methods:
should it be:
POST /user (creates a user *implicitly*)
POST /user/create (creates a user *explicitly*)
DELETE /user/:id
DELETE /user/:id/delete
The first seems to be what is considered "the standard" and the second is obviously much more clear in it's intent and is consistent with methods like /user/disable
Maybe this debate has raged elsewhere but I have not seen it. If you're 'religious' about this, now's your chance to pontificate