add drf_spectacular, type and serialize channel app

This commit is contained in:
Simon
2025-02-09 17:41:12 +07:00
parent 93406ee0a4
commit df5a5cf449
9 changed files with 305 additions and 63 deletions

View File

@@ -16,6 +16,7 @@ Including another URLconf
from django.contrib import admin
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
urlpatterns = [
path("api/", include("common.urls")),
@@ -27,5 +28,11 @@ urlpatterns = [
path("api/appsettings/", include("appsettings.urls")),
path("api/stats/", include("stats.urls")),
path("api/user/", include("user.urls")),
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
path(
"api/docs/",
SpectacularSwaggerView.as_view(url_name="schema"),
name="swagger-ui",
),
path("admin/", admin.site.urls),
]