-
Notifications
You must be signed in to change notification settings - Fork 3
/
consortia_configuration.yaml
82 lines (82 loc) · 2.4 KB
/
consortia_configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
openapi: 3.0.0
info:
title: Consortia Configuration integration API
description: "Consortia Configuration integration API"
version: 0.0.1
paths:
/consortia-configuration:
get:
summary: Get consortium configuration
operationId: getConfiguration
responses:
'200':
$ref: '#/components/responses/ConsortiaConfiguration'
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
post:
summary: Save consortia configuration
operationId: saveConfiguration
responses:
'201':
$ref: '#/components/responses/ConsortiaConfiguration'
'400':
$ref: '#/components/responses/BadRequest'
'409':
$ref: '#/components/responses/Conflict'
'500':
$ref: '#/components/responses/InternalServerError'
requestBody:
$ref: '#/components/requestBodies/ConfigurationBody'
components:
requestBodies:
ConfigurationBody:
description: Consortia configuration object
required: true
content:
application/json:
schema:
$ref: "schemas/consortiaConfiguration.yaml#/ConsortiaConfiguration"
responses:
ConsortiaConfiguration:
description: Consortia configuration object
content:
application/json:
schema:
$ref: "schemas/consortiaConfiguration.yaml#/ConsortiaConfiguration"
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Error"
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Error"
Conflict:
description: Validation errors
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Errors"
Unauthorized:
description: Not authorized to perform requested action
content:
text/plain:
example: unable to perform action -- unauthorized
UnprocessableEntity:
description: Validation errors
content:
application/json:
schema:
$ref: 'schemas/common.yaml#/Errors'
InternalServerError:
description: Internal server error
content:
application/json:
schema:
$ref: "schemas/common.yaml#/Error"