diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py b/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py index 92b4ad5c6a2d3f6eb6c574ee01c49dd5512ceccf..30c7c7ab40b5c288949523104866ac2b41a2752a 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py @@ -561,7 +561,7 @@ class TaskDraftCopyViewSet(LOFARCopyViewSet): @swagger_auto_schema(responses={201: 'The new Task Draft', 403: 'forbidden'}, - operation_description="Copy a Task Draft to a new Task Draft") + operation_description="Copy this Task Draft to a new Task Draft") def create(self, request, *args, **kwargs): if 'id' in kwargs: task_draft = get_object_or_404(models.TaskDraft, pk=kwargs["id"]) @@ -600,9 +600,9 @@ class SchedulingUnitDraftCopyViewSet(LOFARCopyViewSet): queryset = models.SchedulingUnitDraft.objects.all() serializer_class = serializers.SchedulingUnitDraftCopySerializer - @swagger_auto_schema(responses={201: 'The new scheduling_unit_draft', + @swagger_auto_schema(responses={201: 'The new SchedulingUnitDraft', 403: 'forbidden'}, - operation_description="Copy a Scheduling Unit Draft to a new Scheduling Unit Draft") + operation_description="Copy a SchedulingUnitDraft to a new SchedulingUnitDraft") def create(self, request, *args, **kwargs): if 'id' in kwargs: scheduling_unit_draft = get_object_or_404(models.SchedulingUnitDraft, pk=kwargs['id']) @@ -654,9 +654,9 @@ class SchedulingUnitDraftCopyFromSchedulingSetViewSet(LOFARCopyViewSet): else: return models.SchedulingUnitDraft.objects.all() - @swagger_auto_schema(responses={201: "The TaskDrafts copied from the TaskDrafts in this Scheduling Unit Set", + @swagger_auto_schema(responses={201: "The new TaskDraft(s) copied from the TaskDraft(s) in this SchedulingUnitSet", 403: 'forbidden'}, - operation_description="Create a copy of all the TaskDrafts in this Scheduling Unit Set.") + operation_description="Copy the TaskDraft(s) in this SchedulingUnitSet to new TaskDraft(s).") def create(self, request, *args, **kwargs): if 'id' in kwargs: scheduling_set = get_object_or_404(models.SchedulingSet, pk=kwargs['id']) @@ -693,9 +693,9 @@ class SchedulingUnitBlueprintCopyToSchedulingUnitDraftViewSet(LOFARCopyViewSet): queryset = models.SchedulingUnitBlueprint.objects.all() serializer_class = serializers.SchedulingUnitBlueprintCopyToSchedulingUnitDraftSerializer - @swagger_auto_schema(responses={201: "The copy of the SchedulingUnitDraft", + @swagger_auto_schema(responses={201: "The new SchedulingUnitDraft copied from this SchedulingUnitBlueprint", 403: 'forbidden'}, - operation_description="Create a SchedulingUnitDraft from the SchedulingUnitBlueprint") + operation_description="Copy the SchedulingUnitBlueprint to a new SchedulingUnitDraft") def create(self, request, *args, **kwargs): if 'id' in kwargs: @@ -728,9 +728,9 @@ class TaskBlueprintCopyToTaskDraftViewSet(LOFARCopyViewSet): queryset = models.SchedulingUnitBlueprint.objects.all() serializer_class = serializers.SchedulingUnitBlueprintCopyToSchedulingUnitDraftSerializer - @swagger_auto_schema(responses={201: "The TaskDraft created from this TaskBlueprint", + @swagger_auto_schema(responses={201: "The new TaskDraft created from this TaskBlueprint", 403: 'forbidden'}, - operation_description="Copy this TaskBlueprint to a new TaskDraft.") + operation_description="Copy this TaskBlueprint into a new TaskDraft.") def create(self, request, *args, **kwargs): if 'id' in kwargs: task_blueprint = get_object_or_404(models.TaskBlueprint, pk=kwargs['id'])