<reponame>maykinmedia/drf-polymorphic<filename>testapp/urls.py
from django.contrib import admin
from django.urls import include, path

from drf_spectacular.views import SpectacularYAMLAPIView

from .views import PetView

urlpatterns = [
    path("admin/", admin.site.urls),
    path(
        "api/",
        include(
            [
                path("", SpectacularYAMLAPIView.as_view(schema=None), name="schema"),
                path("pets/", PetView.as_view(), name="pets"),
            ]
        ),
    ),
]

from django.contrib import admin
from django.urls import include, path

from drf_spectacular.views import SpectacularYAMLAPIView

from .views import PetView

urlpatterns = [
    path("admin/", admin.site.urls),
    path(
        "api/",
        include(
            [
                path("", SpectacularYAMLAPIView.as_view(schema=None), name="schema"),
                path("pets/", PetView.as_view(), name="pets"),
            ]
        ),
    ),
]