Initial commit

This commit is contained in:
Pablo Moreno
2024-03-21 23:17:58 +01:00
committed by GitHub
commit a13eb6c9d9
25 changed files with 612 additions and 0 deletions
View File
View File
+10
View File
@@ -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"),
]
+6
View File
@@ -0,0 +1,6 @@
from drf_spectacular.views import SpectacularAPIView
class APISchema(SpectacularAPIView):
api_version = "v1"