diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py b/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py index 9605ead221a9ae4a18596d0c6d887b4ad2791bc2..d78c258081ffcc15b654fb8d456e3deb620090b0 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py @@ -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()