Skip to content

Commit

Permalink
Merge pull request #223 from Eastern-Research-Group/feature/update-op…
Browse files Browse the repository at this point in the history
…enapi-documentation

Feature/update openapi documentation
  • Loading branch information
courtneymyers authored Aug 24, 2022
2 parents d4b3055 + 7243c95 commit 27c311d
Showing 1 changed file with 98 additions and 33 deletions.
131 changes: 98 additions & 33 deletions docs/csb-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,47 @@
"parameters": [{ "$ref": "#/components/parameters/scan" }]
}
},
"/api/csb-data": {
"get": {
"summary": "/api/csb-data",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"enrollmentClosed": {
"type": "boolean",
"example": true
}
}
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Unauthorized"
}
}
}
}
}
}
},
"tags": [],
"parameters": [{ "$ref": "#/components/parameters/scan" }]
}
},
"/api/epa-data": {
"get": {
"summary": "/api/epa-data",
Expand All @@ -284,7 +325,21 @@
"content": {
"application/json": {
"schema": {
"type": "object"
"type": "object",
"properties": {
"mail": {
"type": "string",
"example": "[email protected]"
},
"memberof": {
"type": "string",
"example": "csb_admin,csb_helpdesk"
},
"exp": {
"type": "number",
"example": 1661376902
}
}
}
}
}
Expand All @@ -310,18 +365,33 @@
"parameters": [{ "$ref": "#/components/parameters/scan" }]
}
},
"/api/sam-data": {
"/api/bap-data": {
"get": {
"summary": "/api/sam-data",
"summary": "/api/bap-data",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object"
"type": "object",
"properties": {
"samResults": {
"type": "boolean",
"example": true
},
"samEntities": {
"type": "array",
"items": {
"type": "object"
}
},
"rebateSubmissions": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
Expand Down Expand Up @@ -351,9 +421,9 @@
"parameters": [{ "$ref": "#/components/parameters/scan" }]
}
},
"/api/{bapComboKey}/storage/s3": {
"/api/{id}/{comboKey}/storage/s3": {
"get": {
"summary": "/api/{bapComboKey}/storage/s3",
"summary": "/api/{id}/{comboKey}/storage/s3",
"responses": {
"200": {
"description": "OK"
Expand All @@ -362,7 +432,15 @@
"tags": [],
"parameters": [
{
"name": "bapComboKey",
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "comboKey",
"in": "path",
"required": true,
"schema": {
Expand All @@ -373,7 +451,7 @@
]
},
"post": {
"summary": "/api/{bapComboKey}/storage/s3",
"summary": "/api/{id}/{comboKey}/storage/s3",
"responses": {
"200": {
"description": "OK"
Expand All @@ -382,7 +460,15 @@
"tags": [],
"parameters": [
{
"name": "bapComboKey",
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "comboKey",
"in": "path",
"required": true,
"schema": {
Expand Down Expand Up @@ -505,28 +591,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"userAccess": {
"type": "boolean",
"example": true
},
"formSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"example": "https://formmio/project/form/id"
},
"json": {
"type": "object"
}
}
},
"submissionData": {
"type": "object"
}
}
"type": "object"
}
}
}
Expand Down

0 comments on commit 27c311d

Please sign in to comment.