Skip to content
Snippets Groups Projects
Commit f889e6d1 authored by Mario Raciti's avatar Mario Raciti
Browse files

TMSS-692: Add report endpoint for Project

parent 32d4c891
No related branches found
No related tags found
1 merge request!410Resolve TMSS-692
......@@ -282,6 +282,14 @@ class ProjectViewSet(LOFARViewSet):
return queryset
@swagger_auto_schema(responses={200: 'The Report',
403: 'forbidden'},
operation_description="Get Report for the project.")
@action(methods=['get'], detail=True, url_name="report", name="Get Report")
def report(self, request, pk=None):
# TODO: Decide how to retrieve the information needed: recipe of existing APIs or all in one go.
pass
class ProjectNestedViewSet(LOFARNestedViewSet):
queryset = models.Project.objects.all()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment