Skip to content

Commit

Permalink
Update REST API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Manovich committed Jan 15, 2019
1 parent 18b6ffb commit 62976e4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cvat/apps/engine/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
urlpatterns = [
path(REST_API_PREFIX, views.api_root), # entry point for API
path(REST_API_PREFIX + 'tasks/', None), # GET, POST
path(REST_API_PREFIX + 'tasks/<int:tid>', None), # GET, DELETE, PUT
path(REST_API_PREFIX + 'tasks/<int:tid>', None), # GET, DELETE, PATCH
path(REST_API_PREFIX + 'tasks/<int:tid>/frames/<int:frame>', None), # GET
path(REST_API_PREFIX + 'tasks/<int:tid>/jobs/', None), # GET
path(REST_API_PREFIX + 'jobs/<int:jid>', None), # GET, PUT
path(REST_API_PREFIX + 'tasks/<int:tid>/annotations/', None), # GET, DELETE, PATCH
path(REST_API_PREFIX + 'jobs/<int:jid>/annotations/', None), # GET, DELETE, PATCH
path(REST_API_PREFIX + 'jobs/<int:jid>', None), # GET, PATCH
path(REST_API_PREFIX + 'tasks/<int:tid>/annotations/', None), # GET, DELETE, PATCH, PUT
path(REST_API_PREFIX + 'jobs/<int:jid>/annotations/', None), # GET, DELETE, PATCH, PUT
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/<slug:name>/config/', None), # GET, PUT
path(REST_API_PREFIX + 'plugins/<slug:name>/config/', None), # GET, PATCH, PUT
path(REST_API_PREFIX + 'plugins/<slug:name>/data/', None), # GET, POST
path(REST_API_PREFIX + 'plugins/<slug:name>/data/<int:id>', None), # GET, PATCH, DELETE, PUT
path(REST_API_PREFIX + 'plugins/<slug:name>/requests/', None), # GET, POST
path(REST_API_PREFIX + 'plugins/<slug:name>/requests/<int:id>', None), # GET, DELETE

Expand Down

0 comments on commit 62976e4

Please sign in to comment.