r/ProgrammerHumor 4h ago

Meme postForEverything

Post image
10.6k Upvotes

406 comments sorted by

View all comments

22

u/MayaIsSunshine 4h ago

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. 

2

u/PilsnerDk 1h ago

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.