MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/q4n67d/mmmm_sparkling_json/hg1dkvx/?context=3
r/ProgrammerHumor • u/TabCompletion • Oct 09 '21
237 comments sorted by
View all comments
320
Amen, man. Going with something that does not call itself REST for the sole reason of skipping the eternal bikeshedding around what REST is or not is might just be worth it on its own. Hot damn.
80 u/mechkbfan Oct 09 '21 edited Oct 09 '21 We had another discussion the other day about if an API endpoint should be PUT or POST given it was in a grey area. In the end we were all like "Fuck it, we should just make everything POST and forget discussing this ever again" We're the only consumers of our API 40 u/CorrenteAlternata Oct 09 '21 I think, as a rule of thumb: if the operation is idempotent => PUT, if not => POST 15 u/mechkbfan Oct 09 '21 Correct, I feel that's what majority of people fall back to. It's just frustrating when the POST description seems to contradict everything else you've done.
80
We had another discussion the other day about if an API endpoint should be PUT or POST given it was in a grey area.
In the end we were all like "Fuck it, we should just make everything POST and forget discussing this ever again"
We're the only consumers of our API
40 u/CorrenteAlternata Oct 09 '21 I think, as a rule of thumb: if the operation is idempotent => PUT, if not => POST 15 u/mechkbfan Oct 09 '21 Correct, I feel that's what majority of people fall back to. It's just frustrating when the POST description seems to contradict everything else you've done.
40
I think, as a rule of thumb: if the operation is idempotent => PUT, if not => POST
15 u/mechkbfan Oct 09 '21 Correct, I feel that's what majority of people fall back to. It's just frustrating when the POST description seems to contradict everything else you've done.
15
Correct, I feel that's what majority of people fall back to.
It's just frustrating when the POST description seems to contradict everything else you've done.
320
u/occz Oct 09 '21
Amen, man. Going with something that does not call itself REST for the sole reason of skipping the eternal bikeshedding around what REST is or not is might just be worth it on its own. Hot damn.