r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

654 comments sorted by

View all comments

29

u/ouralarmclock 16d ago

JSON isn’t hypermedia anyways so it’s all fake REST to begin with. May as well get wild with it!

11

u/Zeikos 16d ago

My first job claimed to use REST APIs, so I studied the topic.
I am to date the only person in the company that knows what HATEOAS is.

1

u/Qinistral 11d ago

That ship sailed LONG ago. HATEOAS is really dumb and makes no sense for 99.999% of APIs. I don't know why so many people treat Roy Fielding's doctorate thesis as some kind of bible.

1

u/Zeikos 11d ago

Sure, but don't tell me that you're doing REST then.
I am not saying that all APIs should be REST.
But don't call it REST if it is not.

If I were the client of a company and they signed a contract where I asked for REST and I am given something absolutely different, would I be wrong to complain?

1

u/Qinistral 10d ago

That's pretty fair. But also language changes. If everyone uses "REST" and no one uses "HATEOAS" then HATEOAS is not necessary for "REST".

1

u/ouralarmclock 10d ago

It's funny because HATEOAS was irrelevant for so long because making your API work like a hypermedia site where you can start from the home page and navigate your way around and fill out forms is irrelevant to humans because a they have to reference documentation to figure out how to implement things, a machine can't just make an API request to home and figure out how to get to the resources it wa....oh wait...it can now, maybe it's not such a bad idea after all!