Django REST Framework Views - Generic Views Class based views - Django Rest Framework Django REST framework provides a set of generic views that you can use to quickly build API views. These views are designed to provide common behavior, such as allowing read-only or authenticated access to API endpoints. Django's generic views... were developed as a shortcut for common usage patterns ... They take certain common idioms and patterns found in view development and abstract them so that you can quickly write common views of data without having to repeat yourself. Here is a list of the generic views provided by Django REST framework: APIView : A base class for all other generic views. It provides the core implementation for handling requests and responses, and can be subclassed to create your own views. CreateAPIView : A view for creating a new instance of a model. It handles the POST request and provides a default implementation for saving the new object to the database...
Blog contains latest technology updates, interview experiences, languages and frameworks, problems and codes etc.