Concept Flow - Generic views in DRF
Request comes in
Generic View Class
Dispatch method
Determine HTTP method
GET
→ListModelMixin or RetrieveModelMixin
POST
→CreateModelMixin
PUT/PATCH
→UpdateModelMixin
DELETE
→DestroyModelMixin
Perform action
Serialize data
Return Response
The generic view receives a request, decides which HTTP method is called, uses the matching mixin to handle the action, serializes data, and sends back a response.