On Wed, Jun 18, 2014 at 11:57 PM, Markus Lanthaler
<
markus.l...@gmx.net> wrote:
> On Wednesday, June 18, 2014 2:21 PM, Ben George wrote:
>> When adding new fields to a restful HTTP API, how can the API handle
>> the absence of new fields in a PUT requests.
>>
>> Given the resource /users exists, and GET returns {
>> "username":"joeblogs", "address":"1 London Ave" }. If the client does
>> not know about the newly added address field, and PUTS {
>> "username":"joeblogs" }, then what should the API do with address ?
>
> Remove it
>
>> Can we state that for a PUT any field not mentioned is not updated ?
>> Seems messy, and against the vibe of PUT.
>
> Nope. That would be a violation of the HTTP spec.
>