Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from django.urls import path, include
|
||||
from drf_spectacular.views import SpectacularSwaggerView, SpectacularRedocView
|
||||
|
||||
from config.api.v1.views import APISchema
|
||||
|
||||
urlpatterns = [
|
||||
path("schema/", APISchema.as_view(), name="schema"),
|
||||
path("swagger/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
|
||||
path("redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
from drf_spectacular.views import SpectacularAPIView
|
||||
|
||||
|
||||
class APISchema(SpectacularAPIView):
|
||||
api_version = "v1"
|
||||
|
||||
Reference in New Issue
Block a user