X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=dashboard%2Fsrc%2Fapi%2Furls.py;h=94f8279bcab42d83b75c63f7e0ba8c96e35fbda6;hb=refs%2Fchanges%2F73%2F63673%2F1;hp=71cd3efc5585aceb2fa4e9e92ba6651aa0345262;hpb=830e8ee9ec76f426abc59e9b88ccb7ceeedcc8e8;p=pharos-tools.git diff --git a/dashboard/src/api/urls.py b/dashboard/src/api/urls.py index 71cd3ef..94f8279 100644 --- a/dashboard/src/api/urls.py +++ b/dashboard/src/api/urls.py @@ -1,5 +1,6 @@ ############################################################################## # Copyright (c) 2016 Max Breitenfeldt and others. +# Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 @@ -24,18 +25,25 @@ Including another URLconf 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url, include +from django.urls import path from rest_framework import routers from api.views import * router = routers.DefaultRouter() -router.register(r'resources', ResourceViewSet) -router.register(r'servers', ServerViewSet) router.register(r'bookings', BookingViewSet) -router.register(r'resource_status', ResourceStatusViewSet) router.register(r'notifier', NotifierViewSet) +router.register(r'user', UserViewSet) urlpatterns = [ url(r'^', include(router.urls)), + path('labs//profile', lab_profile), + path('labs//status', lab_status), + path('labs//inventory', lab_inventory), + path('labs//jobs/', specific_job), + path('labs//jobs//', specific_task), + path('labs//jobs/new', new_jobs), + path('labs//jobs/current', current_jobs), + path('labs//jobs/done', done_jobs), url(r'^token$', GenerateTokenView.as_view(), name='generate_token'), ]