Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Manovich committed Feb 5, 2019
1 parent d2692da commit a19887e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
28 changes: 18 additions & 10 deletions cvat/apps/engine/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@
# entry point for API
path('api/v1/', include((router.urls, 'cvat'), namespace='v1')),

path('delete/task/<int:tid>', views.delete_task), ####
path('update/task/<int:tid>', views.update_task), ####
path('dump/annotation/task/<int:tid>', views.dump_annotation), ###
path('check/annotation/task/<int:tid>', views.check_annotation), ###
path('download/annotation/task/<int:tid>', views.download_annotation), ###
path('save/annotation/job/<int:jid>', views.save_annotation_for_job), ###
path('save/annotation/task/<int:tid>', views.save_annotation_for_task), ###
path('delete/annotation/task/<int:tid>', views.delete_annotation_for_task), ###
path('get/annotation/job/<int:jid>', views.get_annotation), ###
path('save/exception/<int:jid>', views.catch_client_exception), ###

# deprecated API
path('', views.dispatch_request),
path('create/task', views.create_task),
#path('get/task/<int:tid>/frame/<int:frame>', views.get_frame),
path('check/task/<int:tid>', views.check_task),
path('delete/task/<int:tid>', views.delete_task),
path('update/task/<int:tid>', views.update_task),
path('get/job/<int:jid>', views.get_job),
path('get/task/<int:tid>', views.get_task),
path('dump/annotation/task/<int:tid>', views.dump_annotation),
path('check/annotation/task/<int:tid>', views.check_annotation),
path('download/annotation/task/<int:tid>', views.download_annotation),
path('save/annotation/job/<int:jid>', views.save_annotation_for_job),
path('save/annotation/task/<int:tid>', views.save_annotation_for_task),
path('delete/annotation/task/<int:tid>', views.delete_annotation_for_task),
path('get/annotation/job/<int:jid>', views.get_annotation),
path('get/username', views.get_username),
path('save/exception/<int:jid>', views.catch_client_exception),
path('save/status/job/<int:jid>', views.save_job_status),
]
6 changes: 6 additions & 0 deletions cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ def exception(self, request):

return Response(serializer.data, status=status.HTTP_201_CREATED)

# @action(detail=False, methods=['GET'], serializer_class=ShareSerializer)
# def share(self, request):
# serializer = ShareSerializer(data=request.data)
# if serializer.is_valid(raise_exception=True):
# return Response(serializer.data)


class TaskViewSet(viewsets.ModelViewSet):
queryset = Task.objects.all()
Expand Down

0 comments on commit a19887e

Please sign in to comment.