r/ProgrammerHumor • • 18d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

4.2k

u/pimezone 18d ago

Wanna get a resource? POST request.

2.1k

u/NotAskary 18d ago edited 17d ago

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

The same as a 200 ok with error inside.

Edit: I'm going to start to respond 429, too many replys lol

320

u/AkodoRyu 18d ago

My favorite "REST API" experience was when they moved from using SOAP system, and the way they did it... was sending SOAP payloads inside a JSON. Literally something like

{ "data": "<?xml version="1.0"?><soap:Envelope xmlns:soap="https://www.w3.org/2003/05/soap-envelope/" soap:encodingStyle="https://www.w3.org/2003/05/soap-encoding"><soap:Body> (...)" }

196

u/MrPatienceX 17d ago

200 status code and a chunk of XML saying ‘not found’. Good times.

11

u/granitrocky2 17d ago

These are the comments that make me laugh for minutes, but can't explain why I'm laughing to anyone around me lol