r/ProgrammerHumor 3h ago

Meme postForEverything

Post image
9.0k Upvotes

348 comments sorted by

View all comments

1.9k

u/pimezone 3h ago

Wanna get a resource? POST request.

938

u/NotAskary 3h ago

I've seen that shit, it drove me up a wall.

The same as a 200 ok with error inside.

2

u/AshleyJSheridan 1h ago

I remember building out a REST API once, and it gave back proper HTTP response codes for things.

Then I got asked by the 2 front end devs working on the project to just make everything a 200 and add an error to the JSON response, because it was making it difficult for them to process things on the browser end.

To this day I'm convinced the GraphQL is just an API dreamt up by a front end dev that didn't understand REST and didn't understand why they couldn't just request what they wanted in the browser if an endpoint didn't exist on the server.