PUT overwrites document content.
Shouldn't PUT requests be for updating key/value pairs within a document, and POST for overwriting/creating a document? PUT behaves the same as POST in this instance.
PUT is idempotent by nature. If you want to use PUT to update a resource, it must be a full resource update; you MUST send all attribute values in a PUT request to guarantee idempotency.
-
POSTting TWICE to/accountsSHOULD create two accounts. -
PUTting to/accountsSHOULD fail (nothing to update). -
POSTting TWICE to/accounts/jnovackSHOULD result in 1 account with exactly the same data (perhaps, save forlast-modified). -
PUTting TWICE to/accounts/jnovackSHOULD result in 1 account with exactly the same data (perhaps, save forlast-modified).