Skip to content

Commit

Permalink
LIMS-1138: Update Swagger spec (#723)
Browse files Browse the repository at this point in the history
* LIMS-1138: Update Swagger spec

* LIMS-1138: Use dccid for data collection comment id

---------

Co-authored-by: Mark Williams <[email protected]>
  • Loading branch information
ndg63276 and Mark Williams authored Feb 7, 2024
1 parent 0540533 commit 4675d06
Showing 1 changed file with 31 additions and 49 deletions.
80 changes: 31 additions & 49 deletions api/docs/dist/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,6 @@
},
{
"$ref": "#/parameters/SortOrderParam"
},
{
"$ref": "#/parameters/ProposalParam"
}
],
"responses": {
Expand Down Expand Up @@ -492,6 +489,9 @@
],
"summary": "Get a single visit",
"parameters": [
{
"$ref": "#/parameters/ProposalParam"
},
{
"name": "visit",
"in": "path",
Expand Down Expand Up @@ -519,6 +519,9 @@
],
"summary": "Update a visit, pass one Visit property",
"parameters": [
{
"$ref": "#/parameters/ProposalParam"
},
{
"name": "visit",
"in": "path",
Expand Down Expand Up @@ -2859,7 +2862,7 @@
}
}
},
"/dc/id/{id}": {
"/dc/{id}": {
"get": {
"security": [
{
Expand All @@ -2874,6 +2877,9 @@
"parameters": [
{
"$ref": "#/parameters/DCIDPathParam"
},
{
"$ref": "#/parameters/ProposalParam"
}
],
"responses": {
Expand All @@ -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": [
{
Expand Down Expand Up @@ -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"
}
}
}
}
],
Expand Down Expand Up @@ -3087,7 +3075,7 @@
}
}
},
"/dc/aps": {
"/processing/status": {
"post": {
"security": [
{
Expand Down Expand Up @@ -3227,7 +3215,7 @@
}
}
},
"/dc/ap/{id}": {
"/processing/{id}": {
"get": {
"security": [
{
Expand Down Expand Up @@ -7168,16 +7156,10 @@
"type": "string",
"pattern": "\\w+",
"enum": [
"dc",
"sc",
"fc",
"gr",
"data",
"grid",
"edge",
"mca",
"rb",
"ac",
"flag",
"ap"
"mca"
]
},
"DCIDsBodyParam": {
Expand Down Expand Up @@ -7205,4 +7187,4 @@
}
}
}
}
}

0 comments on commit 4675d06

Please sign in to comment.