vendredi 1 décembre 2017

RESTFul pattern url for enable and disable

What's the RESTFul pattern for enabling and disabling a system user.

Example: a DELETE request to /users/123 and PATCH/UPDATE request to /users/123

Or should I use /user/enable/123 using PUT and /user/disable/123 using DELETE?

Aucun commentaire:

Enregistrer un commentaire