Skip to content

Add and configure drf-spectacular #1901

@rachellougee

Description

@rachellougee

Description/Context

MIT open uses drf-spectacular to generates OpenAPI spec from Django views. @JenniWhitman recommended it for MITx Online as it comes with some features that don't exist in Django rest framework.

Once drf-spectacular is installed, it should works out of the box, but also provides ways to customize the generated OpenAPI schema. Per their docs, It is explicitly designed to work well for documentation (SwaggerUI, ReDoc).

Plan/Design

Note that the existing API won't need to be touched, but if any docstring needs to be updated, please feel free to do so

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions