diff options
author | 2021-03-19 11:48:00 -0400 | |
---|---|---|
committer | 2021-05-28 11:06:08 -0400 | |
commit | ced6bf516bb08073288d4ad0a47d136a504a95c8 (patch) | |
tree | acc9520f5175c06eaad3b701f539de255de56d1f /src/api/urls.py | |
parent | 8086a7aa9aa95d5af341b67cba85b1377a168b98 (diff) |
API V1
Change-Id: I38bc35eeecc0cc7d2334d1fb4b9f215a291e31f6
Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Diffstat (limited to 'src/api/urls.py')
-rw-r--r-- | src/api/urls.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/api/urls.py b/src/api/urls.py index bae86ea..3d78ed6 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -45,7 +45,14 @@ from api.views import ( lab_users, lab_user, GenerateTokenView, - analytics_job + analytics_job, + user_bookings, + make_booking, + available_templates, + images_for_template, + specific_booking, + extend_booking, + all_users ) urlpatterns = [ @@ -65,5 +72,16 @@ urlpatterns = [ path('labs/<slug:lab_name>/jobs/getByType/DATA', analytics_job), path('labs/<slug:lab_name>/users', lab_users), path('labs/<slug:lab_name>/users/<int:user_id>', lab_user), + + path('booking', user_bookings), + path('booking/<int:booking_id>', specific_booking), + path('booking/<int:booking_id>/extendBooking/<int:days>', extend_booking), + path('booking/makeBooking', make_booking), + + path('resource_inventory/availableTemplates', available_templates), + path('resource_inventory/<int:template_id>/images', images_for_template), + + path('users', all_users), + url(r'^token$', GenerateTokenView.as_view(), name='generate_token'), ] |