Files
Django-Enhanced-API-Docs/urls.py

9 lines
406 B
Python
Raw Normal View History

2026-01-13 11:00:34 +01:00
from django.urls import path
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, SpectacularRedocView
urlpatterns = [
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('swagger/', SpectacularSwaggerView.as_view(url_name='schema'), name='schema-swagger-ui'),
path('redoc/', SpectacularRedocView.as_view(url_name='schema'), name='schema-redoc'),
]