How to create views in Django REST Framework
Django REST Framework tip:
There are three core ways to create views:
- extending APIView class
- Extending one of the seven concrete API views (e.g.,
ListCreateAPIView
)- ViewSet (e.g., ModelViewSet)
There are also some sub-possibilities: