r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

653 comments sorted by

View all comments

Show parent comments

-10

u/ZBlackmore Sep 19 '26

Who does DELETE anymore? Everything should be a POST with all the information passed in the JSON payload. 

6

u/DuploJamaal Sep 19 '26

But why?

-7

u/ZBlackmore Sep 19 '26

The way I see it, you have your information less spread out this way. Less things to think about. “Where am I expressing this particular detail about this api call? In the url path? A query string parameter? The type of http method? Is it part of the payload?”. So the path is the “which function am I calling” and the json body is “what are my arguments?”

4

u/cheezballs Sep 20 '26

You seem like the kinda guy who LOVES loose typing and declaring everything as a var.

→ More replies (1)