zlacker

[parent] [thread] 0 comments
1. amaran+(OP)[view] [source] 2025-12-06 01:03:17
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.

[go to top]