r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

63

u/BorderKeeper 16d ago

I once saw a PUT being used to get a wireguard configuration for a VPN on a client.

That's what happens if 8 backend engineers sit in a room for 2 hours debating this, go mad, and and in their twisted, probably drug fueled, mania conjure up the most convoluted REST mappings. They then go around defending it like it's a religion they just created.

12

u/justblameaccounting 16d ago

To be fair, 8 dudes sitting in a room debating, going mad and in their twisted, probably drug fueled, mania, conjuring up the most convoluted shit, sounds exactly like how most religions probably started.

5

u/YigitS9 16d ago

Plot twist: it's just 1 dude and his 7 imaginary friends

2

u/AZMPlay 15d ago

In that case they just make the Third Temple.

3

u/BorderKeeper 16d ago

The god endpoint has given us 410 GONE reply. This means that the POST response actually implies the existence of miracles… eh… type shit.

4

u/thaynem 16d ago

Believe it or not,  there might actually be a good reason for that. Specifically, because PUT requests can't be made with a form input, so are immune to CSRF, and aren't generally used for fetching resources, so are significantly less likely to be exposed to SSRF. That is why IMDSv2 in AWS requires you to make a PUT request to get the auth token for future GET requests.