This content originally appeared on DEV Community and was authored by RenΓ§ber AKMAN
CRUD refers to the four basic operations that can be performed on a database or an application: Create, Read, Update, Delete. These operations form the foundation of almost all software and data management systems.
Create (OluΕtur) Used to add new data.
Example: When a user fills out and submits a registration form, this operation adds a new user to the database.
Read (Oku) Used to read or retrieve existing data.
Example: Running a query to view the list of users is a Read operation.
Update (GΓΌncelle) Used to modify existing data.
Example: Changing a user’s email address is an Update operation.
Delete (Sil) Used to remove existing data from the system.
Example: Permanently deleting a user account is a Delete operation.
In short:
Create β Add new data
Read β Retrieve/view data
Update β Modify existing data
Delete β Remove data
Pro Tip: CRUD operations are often mapped to HTTP methods:
Create β POST
Read β GET
Update β PUT/PATCH
Delete β DELETE
This way, both database and REST API logic are built upon the same core principles.
This content originally appeared on DEV Community and was authored by RenΓ§ber AKMAN