The difference between an API and a REST API

627 views

The difference between an API and a REST API

In: 198

15 Answers

Anonymous 0 Comments

Technically correct answer: a REST api is stateless, http-based and **returns hypertext**

Real-life answer: a REST api is http-based, probably stateless, and almost certainly **doesn’t** return hypertext

More info here: [https://htmx.org/essays/how-did-rest-come-to-mean-the-opposite-of-rest/](https://htmx.org/essays/how-did-rest-come-to-mean-the-opposite-of-rest/)

You are viewing 1 out of 15 answers, click here to view all answers.