-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathCDS-Discovery.yaml
213 lines (213 loc) · 7.56 KB
/
CDS-Discovery.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
swagger: "2.0"
info:
description: API sets created by the Australian Consumer Data Standards to meet the needs
of the Consumer Data Right
version: 1.5.1
title: Consumer Data Standards
contact:
name: APIBank CDS Team
url: https://apibank.com.au/cds
license:
name: MIT License
url: https://opensource.org/licenses/MIT
host: openbank-aunz-test.apigee.net
basePath: /cds-au/v1
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
/discovery/status:
get:
tags:
- Discovery
summary: Get Status
description: Obtain a health check status for the implementation
operationId: getStatus
parameters:
- name: x-v
in: header
description: Version of the API end point requested by the client. Must be set to
a positive integer. The data holder should respond with the highest
supported version between [x-min-v](#request-headers) and
[x-v](#request-headers). If the value of [x-min-v](#request-headers)
is equal to or higher than the value of [x-v](#request-headers) then
the [x-min-v](#request-headers) header should be treated as absent.
If all versions requested are not supported then the data holder
must respond with a 406 Not Acceptable. See [HTTP
Headers](#request-headers)
required: true
type: string
- name: x-min-v
in: header
description: Minimum version of the API end point requested by the client. Must
be set to a positive integer if provided. The data holder should
respond with the highest supported version between
[x-min-v](#request-headers) and [x-v](#request-headers). If all
versions requested are not supported then the data holder must
respond with a 406 Not Acceptable.
required: false
type: string
responses:
"200":
description: Success
headers:
x-v:
type: string
description: The [version](#response-headers) of the API end point that the
data holder has responded with.
schema:
$ref: "#/definitions/ResponseCommonDiscoveryStatus"
x-version: "1"
/discovery/outages:
get:
tags:
- Discovery
summary: Get Outages
description: Obtain a list of scheduled outages for the implementation
operationId: getOutages
parameters:
- name: x-v
in: header
description: Version of the API end point requested by the client. Must be set to
a positive integer. The data holder should respond with the highest
supported version between [x-min-v](#request-headers) and
[x-v](#request-headers). If the value of [x-min-v](#request-headers)
is equal to or higher than the value of [x-v](#request-headers) then
the [x-min-v](#request-headers) header should be treated as absent.
If all versions requested are not supported then the data holder
must respond with a 406 Not Acceptable. See [HTTP
Headers](#request-headers)
required: true
type: string
- name: x-min-v
in: header
description: Minimum version of the API end point requested by the client. Must
be set to a positive integer if provided. The data holder should
respond with the highest supported version between
[x-min-v](#request-headers) and [x-v](#request-headers). If all
versions requested are not supported then the data holder must
respond with a 406 Not Acceptable.
required: false
type: string
responses:
"200":
description: Success
headers:
x-v:
type: string
description: The [version](#response-headers) of the API end point that the
data holder has responded with.
schema:
$ref: "#/definitions/ResponseDiscoveryOutagesList"
x-version: "1"
definitions:
ResponseCommonDiscoveryStatus:
type: object
required:
- data
- links
properties:
data:
$ref: "#/definitions/ResponseCommonDiscoveryStatus_data"
links:
$ref: "#/definitions/Links"
meta:
$ref: "#/definitions/Meta"
ResponseDiscoveryOutagesList:
type: object
required:
- data
- links
properties:
data:
$ref: "#/definitions/ResponseDiscoveryOutagesList_data"
links:
$ref: "#/definitions/Links"
meta:
$ref: "#/definitions/Meta"
DiscoveryOutage:
type: object
required:
- duration
- explanation
- outageTime
properties:
outageTime:
type: string
description: Date and time that the outage is scheduled to begin
x-cds-type: DateTimeString
duration:
type: string
description: Planned duration of the outage. Formatted according to [ISO 8601
Durations](https://en.wikipedia.org/wiki/ISO_8601#Durations) (excludes
recurrence syntax)
x-cds-type: ExternalRef
isPartial:
type: boolean
description: Flag that indicates, if present and set to true, that the outage is
only partial meaning that only a subset of normally available end
points will be affected by the outage
x-cds-type: Boolean
explanation:
type: string
description: Provides an explanation of the current outage that can be displayed to
an end customer
Links:
type: object
required:
- self
properties:
self:
type: string
description: Fully qualified link that generated the current response document
x-cds-type: URIString
Meta:
type: object
ResponseCommonDiscoveryStatus_data:
required:
- status
- updateTime
properties:
status:
type: string
description: Enumeration with values. OK (implementation is fully functional).
PARTIAL_FAILURE (one or more end points are unexpectedly unavailable).
UNAVAILABLE (the full implementation is unexpectedly unavailable).
SCHEDULED_OUTAGE (an advertised outage is in effect)
enum:
- OK
- PARTIAL_FAILURE
- SCHEDULED_OUTAGE
- UNAVAILABLE
explanation:
type: string
description: Provides an explanation of the current outage that can be displayed to
an end customer. Mandatory if the status property is any value other
than OK
detectionTime:
type: string
description: The date and time that the current outage was detected. Should only be
present if the status property is PARTIAL_FAILURE or UNAVAILABLE
x-cds-type: DateTimeString
expectedResolutionTime:
type: string
description: The date and time that full service is expected to resume (if known).
Should not be present if the status property has a value of OK.
x-cds-type: DateTimeString
updateTime:
type: string
description: The date and time that this status was last updated by the Data Holder.
x-cds-type: DateTimeString
ResponseDiscoveryOutagesList_data:
required:
- outages
properties:
outages:
type: array
description: List of scheduled outages. Property is mandatory but may contain and
empty list if no outages are scheduled
items:
$ref: "#/definitions/DiscoveryOutage"