The CRUD Model
CRUD is an acronym for Create, Read, Update, and Delete. These are the four basic operations we use to manipulate data using APIs. HTTP also follows CRUD functionalities, which means REST APIs utilize this too. Other popular database technologies like SQL and GraphQL also have CRUD operations as their foundation. CRUD operations are vital in API building and database technologies because they enable effective data interaction and manipulation.
Here is the first of the four CRUD operations: Create. This action allows new resources to be created and added to an existing database. The HTTP equivalent is the POST method.
The second operation is READ. This action allows us to retrieve and view current data without altering it. The HTTP equivalent is the GET method.
The third operation is Update. This allows specific data to be altered and modified. The HTTP equivalent is the PUT method.
The final operation of CRUD is Delete. This implies resources can be removed from the database system entirely. As implied, the equivalent HTTP method is DELETE.