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

Huh. Interesting solution! I've always thought the only way to make an API idempotent was to not expose "adding" endpoints. That is, instead of exposing a endpoint "addvalue(n)" you would have setvalue(n)". Any adding that might be needed is then left as an exercise for the client.

Which obviously has it's own set of tradeoffs.





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

Search: