diff --git a/cvat/apps/engine/urls.py b/cvat/apps/engine/urls.py index a8455a408fbd..f6684aa0e0ae 100644 --- a/cvat/apps/engine/urls.py +++ b/cvat/apps/engine/urls.py @@ -6,23 +6,25 @@ from django.urls import path from . import views +REST_API_PREFIX = 'api//' + urlpatterns = [ - path('v1', views.api_root), # entry point for API - path('v1/tasks/', None), # POST, GET - path('v1/tasks/', None), # GET, DELETE, PUT - path('v1/tasks//frames/', None), # GET - path('v1/tasks//jobs/', None), # GET - path('v1/jobs/', None), # GET, PUT - path('v1/tasks//annotations/', None), # GET, DELETE, PATCH - path('v1/jobs//annotations/', None), # GET, DELETE, PATCH - path('v1/users/', None), # GET - path('v1/users/myself', None), # GET - path('v1/exceptions/', None), # POST - path('v1/info/', None), # GET - path('v1/plugins/', None), # GET - path('v1/plugins//config/', None), # GET, PUT - path('v1/plugins//requests/', None), # GET, POST - path('v1/plugins//requests/', None), # GET, DELETE + path(REST_API_PREFIX, views.api_root), # entry point for API + path(REST_API_PREFIX + 'tasks/', None), # GET, POST + path(REST_API_PREFIX + 'tasks/', None), # GET, DELETE, PUT + path(REST_API_PREFIX + 'tasks//frames/', None), # GET + path(REST_API_PREFIX + 'tasks//jobs/', None), # GET + path(REST_API_PREFIX + 'jobs/', None), # GET, PUT + path(REST_API_PREFIX + 'tasks//annotations/', None), # GET, DELETE, PATCH + path(REST_API_PREFIX + 'jobs//annotations/', None), # GET, DELETE, PATCH + path(REST_API_PREFIX + 'users/', None), # GET + path(REST_API_PREFIX + 'users/myself', None), # GET + path(REST_API_PREFIX + 'exceptions/', None), # POST + path(REST_API_PREFIX + 'info/', None), # GET + path(REST_API_PREFIX + 'plugins/', None), # GET + path(REST_API_PREFIX + 'plugins//config/', None), # GET, PUT + path(REST_API_PREFIX + 'plugins//requests/', None), # GET, POST + path(REST_API_PREFIX + 'plugins//requests/', None), # GET, DELETE path('create/task', views.create_task), #### path('get/task//frame/', views.get_frame), ###