From 8f1c409f22e267a267273072a35e334b71d1b61c Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Wed, 10 Jun 2020 13:42:12 +0000 Subject: [PATCH] #129: Correct other customer user input parameters so they work in Swagger --- src/resources/table_endpoints/table_endpoints.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/resources/table_endpoints/table_endpoints.py b/src/resources/table_endpoints/table_endpoints.py index eb861ff3..50fd3000 100644 --- a/src/resources/table_endpoints/table_endpoints.py +++ b/src/resources/table_endpoints/table_endpoints.py @@ -183,13 +183,13 @@ def get(self, instrument_id, cycle_id): parameters: - in: path required: true - name: Instrument ID + name: instrument_id description: The id of the instrument to retrieve the investigations of schema: type: integer - in: path required: true - name: Facility Cycle ID + name: cycle_id description: The id of the facility cycles to retrieve the investigations of schema: type: integer @@ -207,7 +207,7 @@ def get(self, instrument_id, cycle_id): schema: type: array items: - $ref: '#/components/schemas/INVESTIGATIONS' + $ref: '#/components/schemas/INVESTIGATION' 400: description: Bad request - Something was wrong with the request 401: @@ -234,13 +234,13 @@ def get(self, instrument_id, cycle_id): parameters: - in: path required: true - name: Instrument ID + name: instrument_id description: The id of the instrument to retrieve the investigations of schema: type: integer - in: path required: true - name: Facility Cycle ID + name: cycle_id description: The id of the facility cycles to retrieve the investigations of schema: type: integer