Open cxmeel opened 5 years ago
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.
POST
ting TWICE to /accounts
SHOULD create two accounts.
PUT
ting to /accounts
SHOULD fail (nothing to update).
POST
ting TWICE to /accounts/jnovack
SHOULD result in 1 account with exactly the same data (perhaps, save for last-modified
).
PUT
ting TWICE to /accounts/jnovack
SHOULD result in 1 account with exactly the same data (perhaps, save for last-modified
).
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.