What problem does it solve?
This Skill solves the problem of building correct, secure, and maintainable Django REST Framework (DRF) APIs by standardizing serializers, viewsets, filters, permissions, pagination, and OpenAPI documentation patterns.
Core Features & Use Cases
- Operation-specific serializers: Separate Read/Create/Update/Include serializers to keep validation and response shapes correct and auditable.
- RLS- and tenant-aware querying: Provide safe
get_queryset() patterns that avoid N+1 queries and handle OpenAPI schema generation via swagger_fake_view.
- Predictable filtering & permissions: Use
filterset_class and dedicated filter base classes for consistent query semantics, plus per-action permission gating.
- Governance-first REST output: Enforce JSON:API conventions, explicit field whitelisting (no mass assignment), and consistent OpenAPI schema annotations (drf-spectacular).
Quick Start
Apply the django-drf skill to design a new DRF ViewSet endpoint with UUID primary keys, action-specific serializers, filterset_class-based filtering, tenant/RLS-safe get_queryset(), and drf-spectacular OpenAPI annotations.