diff --git a/SAS/TMSS/src/tmss/tmssapp/viewsets/specification.py b/SAS/TMSS/src/tmss/tmssapp/viewsets/specification.py index 5f45892d4aeae1af3eea9e6045b3685e7140741b..8f3b92647d27946024b248ceb9bca525b4e951a1 100644 --- a/SAS/TMSS/src/tmss/tmssapp/viewsets/specification.py +++ b/SAS/TMSS/src/tmss/tmssapp/viewsets/specification.py @@ -166,10 +166,10 @@ class SchedulingUnitDraftViewSet(LOFARViewSet): queryset = models.SchedulingUnitDraft.objects.all() serializer_class = serializers.SchedulingUnitDraftSerializer - @swagger_auto_schema(responses={201: 'Created schduling unit blueprint, see Location in Response header', + @swagger_auto_schema(responses={201: 'The Created SchedulingUnitBlueprint, see Location in Response header', 403: 'forbidden'}, - operation_description="Carve this draft task specification in stone, and make an (uneditable) blueprint out of it.") - @action(methods=['get'], detail=True, url_name="create_task_blueprint") + operation_description="Carve SchedulingUnitDraft in stone, and make an (uneditable) blueprint out of it.") + @action(methods=['get'], detail=True, url_name="create_task_blueprint", name="Create SchedulingUnitBlueprint") def create_scheduling_unit_blueprint(self, request, pk=None): scheduling_unit_draft = get_object_or_404(models.SchedulingUnitDraft, pk=pk) scheduling_unit_blueprint = create_scheduling_unit_blueprint_from_scheduling_unit_draft(scheduling_unit_draft) @@ -184,10 +184,10 @@ class SchedulingUnitDraftViewSet(LOFARViewSet): status=status.HTTP_201_CREATED, headers={'Location': scheduling_unit_blueprint_path}) - @swagger_auto_schema(responses={201: 'Created schduling unit blueprint, see Location in Response header', + @swagger_auto_schema(responses={201: 'The Created schduling unit blueprint, see Location in Response header', 403: 'forbidden'}, operation_description="Carve this scheduling unit draft, and its tasks in stone, and make blueprint(s) out of it, create subtasks, and schedule the ones that are not dependend on predecessors.") - @action(methods=['get'], detail=True, url_name="create_blueprints_and_schedule", name="Create Blueprints and Schedule") + @action(methods=['get'], detail=True, url_name="create_blueprints_and_schedule", name="Create Blueprints-Tree and Schedule") def create_blueprints_and_schedule(self, request, pk=None): scheduling_unit_draft = get_object_or_404(models.SchedulingUnitDraft, pk=pk) scheduling_unit_blueprint = create_task_blueprints_and_subtasks_and_schedule_subtasks_from_scheduling_unit_draft(scheduling_unit_draft)