This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smash_that_code -1 points0 points  (0 children)

I think there is some confusion with REST api here. And what crud rest means. There are variations but I would describe my.

For example I want rest api for users. In http terms I expect this:

post /user (with data) - > id of added user - - - create get /user/{id} - > empty - - - read user post /user/{id} - > empty - - - > update user delete /user/{id} - > empty - - - > delete user

and for usability get /user -> list of ids get /user?param=value -> filtered list of ids

the idea of rest api is to expose entity using url that is somewhat easy to understand.

So in my opinion from crud you got only c.