3 ms·
REST is a model for CRUD, but modern apps have far more complex interactions with server data.
by alisonkisk 5y ago
REST is a model for CRUD, but modern apps have far more complex interactions with server data.
- recursivedoubts 5y agoThis is a category error. REST is a novel network architecture, the most distinct aspect of which is the uniform interface[1], and has nothing to do, conceptually, with CRUD apps. It may be associated with web 1.0 CRUD apps, but the actual REST/hypermedia model generalizes and HTML, with a bit of help[2], can produce sophisticated UIs well beyond "CRUD". -- [1] https://en.wikipedia.org/wiki/Representational_state_transfer#Uniform_interface https://en.wikipedia.org/wiki/Representational_state_transfe... [2] https://htmx.org/examples https://htmx.org/examples
- dragonwriter 5y ago> REST is a model for CRUD CRUD covers all possible interactions with data, and, in that sense, this description is correct. “CRUD application” is sometimes used to refer to an application which presents only the most simple operations data operations to users, and saying REST is for CRUD applications in that sense would be the opposite of the truth. In fact, its the opposite, its a mechanism which facilitates creating applications of arbitrary complexity from components exposing simple, self-describing interfaces.