CRUD
Create, Read, Update, Delete: the four basic operations on stored data.
Definition
In a REST API, CRUD usually maps to POST, GET, PUT or PATCH, and DELETE. Testers chain them: create an item, read it back, update it, read again, delete it and confirm a final read returns 404.
In practice
POST /addresses → 201 with id 31; GET /addresses/31 → 200; PATCH → 200; DELETE → 204; GET /addresses/31 → 404.
Learn it in context
Lessons that use this term.
Related terms
- HTTP methodThe type of request: GET reads data, POST creates, PUT/PATCH updates, DELETE removes.
- APIThe way different software parts talk to each other, like an app asking a server for data.
- EndpointA specific API address the app calls, like GET /api/products or POST /api/login.
- REST APIThe most common style of web API: each thing has a URL, and HTTP methods say what to do with it.