Skip to content
Snippets Groups Projects

GREG-25: Adding namespace versioning

Merged Tore.Brede requested to merge GREG-25_add_api_versioning into master
+ 3
3
@@ -27,14 +27,14 @@ urlpatterns: List[URLResolver] = [
"schema/",
SpectacularAPIView.as_view(versioning_class=NamespaceVersioning),
name="schema",
),
), # type: ignore
path(
"schema/swagger-ui/",
SpectacularSwaggerView.as_view(
url_name="schema", versioning_class=NamespaceVersioning
),
), # type: ignore
name="swagger-ui",
),
path("health/", Health.as_view()),
path("health/", Health.as_view()), # type: ignore
path("api/v1/", include((api_urls.urlpatterns, "greg"), namespace="v1")),
]
Loading