CRUD is an approach to build a Django web application. CRUD stands for Create Retrieve Update Delete.
In simple words CRUD means performing Create, Retrieve, Update and Delete operations on a table in a database.
Django REST provides some generic view classes for doing these operations easily and there is an HTTP method handler assigned with each of them.
|Create||POST||(Creates a new instance of a model)|
|Retrieve||GET||(Brings the value of an instance)|
|Update||PUT/PATCH||(Updates the value of an instance)|
|Delete||DELETE||(Deletes an instance)|
In this article we will implement each of the operations in our project. First, we will create one API for each operation. Then we will see how to do multiple operations with only one API endpoint.