PUT should reference the object ID in the URL though.
Yup, I agree. But I just wanted to show how the params might look like.
Re:What makes a great API ?
by kirang1989 on Wednesday November 13, 2013 @09:57AM
(#6725500)
Consistency indeed ! Thanks :)
POST /users
GET /users
PUT /users {:id => 2, ....}
GET /users/2
GET /users/2/friends
POST /users/2/friends
etc