Skip to content

Commit

Permalink
LIMS-1138: Update Swagger spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Williams committed Feb 5, 2024
1 parent 1d10ac9 commit b38f64b
Showing 1 changed file with 33 additions and 51 deletions.
84 changes: 33 additions & 51 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 All @@ -3028,7 +3016,7 @@
}
}
},
"/dc/comments/{dccid}": {
"/dc/comments/{dcid}": {
"get": {
"security": [
{
Expand All @@ -3041,7 +3029,7 @@
"summary": "Get a single data collection comment",
"parameters": [
{
"name": "dccid",
"name": "dcid",
"in": "path",
"description": "Data collection comment id",
"type": "number",
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 b38f64b

Please sign in to comment.