CRUD API's | Django Rest framework | Django rest API
In a RESTful API, endpoints (URLs) define the structure of the API and how end users access data from our application using the HTTP methods - GET, POST, PUT, DELETE.
Endpoints should be logically organized around collections and elements, both of which are resources.
Django REST API – CRUD with DRF
Django REST Framework is used to create web APIs very easily and efficiently.
This is a wrapper around the Django Framework. There are three stages before creating an API through the REST framework, Converting a Model’s data to JSON/XML format (Serialization), Rendering this data to the view, and Creating a URL for mapping to the views.
installation:
pip install djangorestframework