Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It was a nitpicky comment, I guess cause I am contemplating the meaning of idempotent. Two identical PUTs on an existing doc will not change the database so I guess that's OK, but their response will be different insofar as the 2nd will fail.


I don't think the failed response matters. You can replay a PUT request without altering the state on the server. (Aside from the single object you're manipulating.) Replaying a POST gets you two objects with the same data.


I think you're right because the 2nd PUT doesn't change the value of variables on the server.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: