If you are updating a variable in a RESTful API, for example person
's weight
, how should this be laid out?
What I have thought of:
- PUT
/person/1/weight?weight=150
PUT
/person/1/weight
{"weight": 150}
PUT
/person/1/weight
150
There's been a few answers on this but I don't feel like it's been answered in a clear, solid way.