Skip to content

Commit

Permalink
url updates for openapi endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Mar 20, 2024
1 parent dd99e8e commit fc8419c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions vb_django/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@

router = routers.SimpleRouter()
# ---------- Location API endpoints ---------- #
router.register('location', LocationView, basename='location')
router.register('vb/api/location', LocationView, basename='location')
# --------- Project API endpoints ---------- #
router.register('project', ProjectView, basename='project')
router.register('vb/api/project', ProjectView, basename='project')
# ------ Pipeline API endpoints ------ #
router.register('pipeline', PipelineView, basename='pipeline')
router.register('vb/api/pipeline', PipelineView, basename='pipeline')
# --------- Dataset API endpoints ---------- #
router.register('dataset', DatasetView, basename='dataset')
router.register('vb/api/dataset', DatasetView, basename='dataset')

# api_patterns = path(include()


schema_view = get_schema_view(
Expand All @@ -47,7 +49,7 @@
),
patterns=router.urls,
public=True,
permission_classes=(permissions.AllowAny,),
permission_classes=(permissions.AllowAny,)
)

urlpatterns = [
Expand All @@ -65,12 +67,12 @@
path('api/user/reset/', UserResetView.as_view()), # POST - Password reset

# ------ ADD the DRF urls registered to the router ------ #
path('api/', include(router.urls)),
# path('api/', include(router.urls)),

path('info/pipelines/', pipeline_details),
]

urlpatterns = [path('vb/', include(urlpatterns))]
urlpatterns = [path('vb/', include(urlpatterns))] + router.urls

load_pipelines(purge=True)

0 comments on commit fc8419c

Please # to comment.