Skip to content

A documentation versioning #1

@sshagy

Description

@sshagy

At the same time, it remains unclear how to add documentation autogeneration with this versioning.

  1. Standard documentation does not connect at all. I tried to create different endpoints: api/v1/docs and api/v2/docs.

Import:
from rest_framework.documentation import include_docs_urls

  1. And the old package drf_yasg behaves incorrectly. For api version 2 displays api from version 1, substituting just api/v2. In this case, the error will not be visible, because endpoints are the same. But if endpoints from different versions will be named differently, they will be displayed in both versions.

Import:
from drf_yasg.views import get_schema_view
from drf_yasg import openapi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions