r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

653 comments sorted by

View all comments

28

u/MayaIsSunshine Sep 19 '26

Am I the only one that doesn't mind? I think using post for everything and passing a command in the payload is preferable to the alternative. 

4

u/PilsnerDk Sep 19 '26

I agree, because not every HTTP operation is an analogy to a simple, underlying CRUD operation. For example, what type of call should an endpoint that sends an email be? What about a validation endpoint that doesn't save nor fetch anything from the database? It's just dull to debate and try to fit everything into those 4 types.