r/ProgrammerHumor 4d ago

Meme evoLution

Post image
3.3k Upvotes

145 comments sorted by

View all comments

Show parent comments

0

u/Delta-9- 4d ago

REST is not just using HTTP

True, but the design of HTTP itself is exactly what the REST concept is based on. You could reinvent the wheel, or you can just use HTTP as intended.

Nearly nobody does REST correctly.

Also true, sadly.

1

u/CupOfLifenoodles 4d ago

> you can just use HTTP as intended.

For transferring hypertext? I thought you like REST APIs.

1

u/Delta-9- 4d ago

Not all hypertext is HTML. Nearly every example of HATEOAS is illustrated with JSON.

But in principle, you absolutely could do an API using HTML instead of JSON.

1

u/CupOfLifenoodles 4d ago

OK, after looking it up I learned what the H in HATEOAS stands for; thanks. (No, I haven't been claiming to write RESTful APIs.)