From 4675d06d2d99a3ee81868ff64a8493efd9bc8f64 Mon Sep 17 00:00:00 2001 From: Mark W <24956497+ndg63276@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:21:39 +0000 Subject: [PATCH] LIMS-1138: Update Swagger spec (#723) * LIMS-1138: Update Swagger spec * LIMS-1138: Use dccid for data collection comment id --------- Co-authored-by: Mark Williams --- api/docs/dist/spec.json | 80 ++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 49 deletions(-) diff --git a/api/docs/dist/spec.json b/api/docs/dist/spec.json index 4e2e12716..21ccda967 100644 --- a/api/docs/dist/spec.json +++ b/api/docs/dist/spec.json @@ -260,9 +260,6 @@ }, { "$ref": "#/parameters/SortOrderParam" - }, - { - "$ref": "#/parameters/ProposalParam" } ], "responses": { @@ -492,6 +489,9 @@ ], "summary": "Get a single visit", "parameters": [ + { + "$ref": "#/parameters/ProposalParam" + }, { "name": "visit", "in": "path", @@ -519,6 +519,9 @@ ], "summary": "Update a visit, pass one Visit property", "parameters": [ + { + "$ref": "#/parameters/ProposalParam" + }, { "name": "visit", "in": "path", @@ -2859,7 +2862,7 @@ } } }, - "/dc/id/{id}": { + "/dc/{id}": { "get": { "security": [ { @@ -2874,6 +2877,9 @@ "parameters": [ { "$ref": "#/parameters/DCIDPathParam" + }, + { + "$ref": "#/parameters/ProposalParam" } ], "responses": { @@ -2889,38 +2895,7 @@ } } }, - "/dc/t/{type}/id/{id}": { - "get": { - "security": [ - { - "Bearer": [] - } - ], - "tags": [ - "datacollections" - ], - "summary": "Get a particular beamline event", - "description": "Returns array", - "parameters": [ - { - "$ref": "#/parameters/DCIDPathParam" - }, - { - "$ref": "#/parameters/DCTypePathParam" - } - ], - "responses": { - "200": { - "description": "Array containing single beamline event", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/DataCollections" - } - } - } - } - }, + "/dc/single/t/{type}/{id}": { "patch": { "security": [ { @@ -3008,7 +2983,20 @@ "name": "body", "in": "body", "schema": { - "$ref": "#/definitions/DataCollectionComment" + "properties": { + "DATACOLLECTIONID": { + "type": "number", + "example": 593 + }, + "PERSONID": { + "type": "number", + "example": 593 + }, + "COMMENTS": { + "type": "string", + "example": "a new comment" + } + } } } ], @@ -3087,7 +3075,7 @@ } } }, - "/dc/aps": { + "/processing/status": { "post": { "security": [ { @@ -3227,7 +3215,7 @@ } } }, - "/dc/ap/{id}": { + "/processing/{id}": { "get": { "security": [ { @@ -7168,16 +7156,10 @@ "type": "string", "pattern": "\\w+", "enum": [ - "dc", - "sc", - "fc", - "gr", + "data", + "grid", "edge", - "mca", - "rb", - "ac", - "flag", - "ap" + "mca" ] }, "DCIDsBodyParam": { @@ -7205,4 +7187,4 @@ } } } -} \ No newline at end of file +}