Skip to content

Commit

Permalink
Merge pull request #310 from nexB/update-public-purldb-urls
Browse files Browse the repository at this point in the history
Add API docs to public purldb urls
  • Loading branch information
JonoYang authored Feb 26, 2024
2 parents e893d25 + 6a7a057 commit ae6a810
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions purldb_public_project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from packagedb.api import PackagePublicViewSet
from packagedb.api import PurlValidateViewSet
from packagedb.api import ResourceViewSet
from drf_spectacular.views import SpectacularAPIView
from drf_spectacular.views import SpectacularSwaggerView


api_router = routers.DefaultRouter()
Expand All @@ -32,4 +34,6 @@
),
path('api/', include((api_router.urls, 'api'))),
path('', RedirectView.as_view(url='api/')),
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('api/docs/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
]

0 comments on commit ae6a810

Please sign in to comment.