limdauto / drf_openapi

[DEPRECATED] Beautiful Django Rest Framework API documentation autogeneration through OpenAPI standard

Home Page:https://drf-openapi.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support other versioning schemes

ben-prezola opened this issue · comments

  • DRF OpenAPI version: master
  • Python version: 3.6.3
  • Operating System: Alpine Linux

Description

Tried using this with my setup which uses HostNameVersioning instead of URLPathVersioning and it breaks (obviously). Are there any plans to support different versioning schemes?

The error was raised in templates/drf_openapi/index.html:15:

Reverse for 'api_schema' with keyword arguments '{'version': 'v1'}' not found. 1 pattern(s) tried: ['docs\\/schema/$']