How to make REST APIs in Django?
Kuldeep Pisda - a year ago
In the session, I will show how we can use Django to serve REST APIs.
- Create REST Endpoints quickly with DRF.
- Implement proper permissions on the REST endpoints, for example, an admin can perform any operation on any data. But a specific user can perform a limited operation on certain specific resources.
- Respond with different responses as per the defined user’s permission level. For example, the admin will get all the fields in the response, but a normal user will get only a selected field of the model.
- Implement Pagination on the REST endpoint.
- Create custom endpoints on the REST Endpoints.