Skip to content

Commit ea83477

Browse files
authored
Merge pull request #69 from SPINEProject/postman-api-schema
Postman api schema
2 parents edbad1e + e20b4fb commit ea83477

11 files changed

+1387
-13
lines changed

.postman/api_ed3ea5f7-995a-4255-914e-5b12f7b8f03f

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ files[] = {"path":"API/workflow/workflowIdConfigure.json","metaData":{}}
3737
files[] = {"path":"API/workflowExecutionMatrix/workflowExecutionMatrix.json","metaData":{}}
3838
files[] = {"path":"API/workflowExecutionMatrix/workflowExecutionMatrixId.json","metaData":{}}
3939
files[] = {"path":"API/workflowExecutionMatrix/workflowExecutionMatrixIdAction.json","metaData":{}}
40+
files[] = {"path":"API/workflowExecutionMatrix/workflowExecutionMatrixIdGlobalAction.json","metaData":{}}
4041
files[] = {"path":"center.schema.json","metaData":{}}
4142
files[] = {"path":"cohort.schema.json","metaData":{}}
4243
files[] = {"path":"core.schema.json","metaData":{}}
@@ -48,6 +49,10 @@ files[] = {"path":"helpPanel.schema.json","metaData":{}}
4849
files[] = {"path":"imageFilter.schema.json","metaData":{}}
4950
files[] = {"path":"imageFilterAttribute.schema.json","metaData":{}}
5051
files[] = {"path":"imageFilterSnapshot.schema.json","metaData":{}}
52+
files[] = {"path":"import.schema.json","metaData":{}}
53+
files[] = {"path":"importSeries.schema.json","metaData":{}}
54+
files[] = {"path":"importSubject.schema.json","metaData":{}}
55+
files[] = {"path":"importVisit.schema.json","metaData":{}}
5156
files[] = {"path":"livePresenterExperiment.schema.json","metaData":{}}
5257
files[] = {"path":"livePresenterExperimentResult.schema.json","metaData":{}}
5358
files[] = {"path":"materializedTask.schema.json","metaData":{}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"workflow"
1313
],
1414
"description": "Set of JSON schemas for the SPINE Virtual Laboratory",
15-
"version": "3.1.0",
15+
"version": "3.2.0",
1616
"dependencies": {
1717
"ajv": "^6.12.2"
1818
},

schemas/API/index.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.0",
33
"info": {
4-
"version": "0.2",
4+
"version": "0.2.3-dev",
55
"title": "SPINE API",
66
"description": "SPINE API"
77
},
@@ -29,6 +29,9 @@
2929
"/workflow-execution-matrix/{workflowExecutionMatrixId}/action": {
3030
"$ref": "./workflowExecutionMatrix/workflowExecutionMatrixIdAction.json"
3131
},
32+
"/workflow-execution-matrix/{workflowExecutionMatrixId}/global-action": {
33+
"$ref": "./workflowExecutionMatrix/workflowExecutionMatrixIdGlobalAction.json"
34+
},
3235
"/filter/{filterId}": {
3336
"$ref": "./filter/filterId.json"
3437
},
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parameters": [
3+
{
4+
"name": "workflowExecutionMatrixId",
5+
"in": "path",
6+
"required": true,
7+
"schema": {
8+
"type": "string"
9+
}
10+
}
11+
],
12+
"post": {
13+
"security": [
14+
{
15+
"bearerAuth": []
16+
}
17+
],
18+
"tags": [
19+
"workflow execution matrix"
20+
],
21+
"summary": "/api/workflow-execution-matrix/workflowExecutionMatrixId/global-action",
22+
"description": "This API is used to post an action (launch, ...) to all the case of a wf exec plan",
23+
"requestBody": {
24+
"required": true,
25+
"content": {
26+
"application/json": {
27+
"schema": {
28+
"$ref": "../../workflowExecutionMatrix.schema.json#/definitions/postWorkflowExecutionMatrixGlobalActionBody"
29+
},
30+
"examples": {
31+
"1": {
32+
"value": {
33+
"actionType": "LAUNCH"
34+
}
35+
}
36+
}
37+
}
38+
}
39+
},
40+
"responses": {
41+
"200": {
42+
"description": "200",
43+
"content": {
44+
"application/json": {
45+
46+
}
47+
}
48+
},
49+
"500": {
50+
"description": "Unexpected error"
51+
}
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)