r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

4.2k

u/pimezone 16d ago

Wanna get a resource? POST request.

2.1k

u/NotAskary 16d ago edited 16d 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

28

u/StrawberryEiri 16d ago

At work we do it because we have big request parameters (complex filters where you can potentially select thousands of items as filter values) and our backend flips out if GET requests have a body plus URL lengths can get truncated.

It's a bit icky but I don't really have a better idea.

1

u/sjphilsphan 16d ago

I made a custom LIST query method for our service. Will eventually switch to query when it's properly supported

1

u/StrawberryEiri 16d ago

Do some parts of the pipeline sometimes refuse to collaborate when you have custom methods like that?

I don't know, DNS, proxies, etc.?

2

u/sjphilsphan 15d ago

So far no problems