4 ms·
> A truly RESTful API is essentially just a database. Not sure where you get that from. A truly RESTful API describes resources and their state changes via med
by rswail 5y ago
> A truly RESTful API is essentially just a database.
Not sure where you get that from. A truly RESTful API describes resources and their state changes via media types and URLs and the use of a limited number of verbs for transferring those state changes over the API.
People like to map REST to CRUD because GET looks like a SELECT, POST looks like an INSERT, PUT looks like an UPDATE and DELETE looks like a DELETE.
But there's nothing set in stone about those mappings.
An API can represent their resources however they like and use the appropriate links to URLs to represent the state changes. What the underlying persistent storage is (if any) is irrelevant.
- jseban 5y ago> People like to map REST to CRUD because GET looks like a SELECT, POST looks like an INSERT, PUT looks like an UPDATE and DELETE looks like a DELETE. > But there's nothing set in stone about those mappings. People use those mapping because that's what is actually happening further down the stack, when you call your RDBMS in the end.