mardi 30 juin 2015

What should be a correct JSON response for actions on certain object(s)

What should be a correct JSON response for actions on certain object(s). I would like to perform a certain action on User(s).

I am assuming the REST syntax for such actions (either single or multiple) look fine, what should a sample JSON response look like in case of success or failures.

e.g.

a. Archive a certain User http://foo:port/users/1/archive
b. Archive User(s) http://foo:port/users/archive?userIds=1,2,3
c. Remove a certain User http://foo:port/users/1/remove
d. Remove User(s) http://foo:port/users/remove?userIds=1,2,3

Aucun commentaire:

Enregistrer un commentaire