1. 🏡
  2. django-mantle-drf

Django-Mantle-DRF¶

Django REST Framework views powered by Mantle and attrs shape classes.

Use attrs @define classes instead of DRF serialisers. Structure and unstructure with cattrs. Generate OpenAPI schemas with drf-spectacular.

Contents:

  • Quick Start
    • Installation
    • Define a Shape Class
    • Create a View
  • Views & ViewSets
    • GenericAPIView
    • Mixins
    • Concrete Views
    • ViewSets
  • OpenAPI Schema Generation
    • Setup
    • Register the Extension
    • Annotate Views
    • Field Metadata
  • Changelog
    • 26.2
    • 26.1

On this page

  • Django-Mantle-DRF