Any system that stores data can create it, display it, change it and delete it, and this minimal set is called CRUD. The term is used to describe an interface: a screen, module or API that does only this is called a “CRUD app”.
How the operations map to SQL and HTTP
| Operation | SQL | HTTP method |
|---|---|---|
| Create | INSERT | POST |
| Read | SELECT | GET |
| Update | UPDATE | PUT or PATCH |
| Delete | DELETE | DELETE |
The mapping between operations and methods is not rigid: POST on a resource can create it or trigger processing, PUT replaces the whole representation, and PATCH changes it partially; the choice depends on the intended semantics of the resource.
Where it appears
- REST API design: a set of CRUD operations describes what can be done with a resource.
- ORMs: every model has methods to create, fetch, change and delete records, and admin pages are often built by CRUD interface generators.
- Access control: permissions are phrased as “create, read, change, delete”.
CRUD app
This is an application whose user interface boils down to forms and lists over a table, with no complex logic. In tutorials, a “to-do list with CRUD” is a typical first project.
Sources
the term is written from these pagesVerified 9 Nov