-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathswagger.yaml
More file actions
228 lines (228 loc) · 5.84 KB
/
Copy pathswagger.yaml
File metadata and controls
228 lines (228 loc) · 5.84 KB
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
openapi: '3.0.0'
info:
title: BaseProject Service
description: API for BaseProject Service
contact:
name: Onebyte
email: abc@abc.com
version: v0.1
servers:
- url: 'https://api.globalid.net'
tags:
- name: Protected
- name: Internal
paths:
'/v1/baseproject':
get:
tags:
- Protected
summary: Get a list of all baseproject that belong to this identity
description: Get a list of all baseproject that belong to this identity
operationId: Getbaseproject
responses:
'200':
$ref: '#/components/responses/EmptyResponse'
components:
schemas:
PaginationMeta:
description: A Pagination Information
type: object
properties:
page:
$ref: '#/components/schemas/page'
per_page:
$ref: '#/components/schemas/per_page'
total:
$ref: '#/components/schemas/total'
required:
- page
- per_page
- total
UnexpectedError:
properties:
statusCode:
type: integer
format: int32
example: 500
error_id:
type: string
format: uuid
example: 7c9e6a03-ac89-485e-885c-0fdd2c39739e
error_code:
type: string
example: UnexpectedError
message:
type: string
example: There was an unexpected error. We have been alerted and are looking into it.
required:
- error_id
- error_code
- statusCode
- message
UnauthorisedError:
description: Unauthorised error
required:
- error_code
- error_id
- message
- statusCode
properties:
statusCode:
type: integer
format: int32
example: 401
message:
type: string
example: You are not authorized to access this resource
error_code:
type: string
example: ERR_UNAUTHORIZED
error_id:
type: string
format: uuid
example: 8c8bac3a-bc8c-4d44-bccf-1022b2434971
FiltersIncorrectError:
properties:
statusCode:
type: integer
format: int32
example: 400
message:
type: string
example: The filters passed as parameters are incorrect
error_code:
type: string
example: ERR_FILTERS_INCORRECT
error_id:
type: string
format: uuid
example: 8c8bac3a-bc8c-4d44-bccf-1022b2434971
ForbiddenError:
description: Forbidden
required:
- error_code
- error_id
- message
- statusCode
properties:
statusCode:
type: integer
format: int32
example: 403
message:
type: string
example: You are not authorised to access this resource
error_code:
type: string
example: 'ERR_FORBIDDEN'
error_id:
type: string
format: uuid
example: 8c8bac3a-bc8c-4d44-bccf-1022b2434971
UnprocessableEntityError:
description: Unprocessible Entity
required:
- error_code
- error_id
- message
- statusCode
properties:
statusCode:
type: integer
format: int32
example: 422
message:
type: string
example: Your Client / Device limit has been reached
error_code:
type: string
example: 'CLIENT_DEVICE_LIMIT_REACHED'
error_id:
type: string
format: uuid
example: 8c8bac3a-bc8c-4d44-bccf-1022b2434971
page:
type: integer
per_page:
type: integer
total:
description: Pagination Total Records
type: integer
example: 255
ValidationFailedError:
description: Validation failed
properties:
error_id:
type: string
format: uuid
example: 8c8bac3a-bc8c-4d44-bccf-1022b2434971
request_id:
type: string
format: uuid
example: '39ac9a4f-27c8-45fa-a1dd-5b653c4a104f'
fields:
type: object
properties:
missing:
type: array
items:
type: string
example: should have required property 'required_property'
NotFound:
properties:
statusCode:
type: integer
format: int32
example: 404
error_id:
type: string
format: uuid
example: 7c9e6a03-ac89-485e-885c-0fdd2c39739e
error_code:
type: string
example: ERR_NOT_FOUND
message:
type: string
example: The resource you are looking for does not exist
required:
- error_id
- error_code
- statusCode
- message
responses:
UnauthorisedResponse:
description: You are not authorised
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorisedError'
ForbiddenErrorResponse:
description: You are not authorised
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
UnprocessableEntityResponse:
description: Unprocessible Entity
content:
application/json:
schema:
$ref: '#/components/schemas/UnprocessableEntityError'
FiltersIncorrectErrorResponse:
description: The filters are incorrect
content:
application/json:
schema:
$ref: '#/components/schemas/FiltersIncorrectError'
EmptyResponse:
description: Response with empty array
content:
application/json:
schema:
type: object
UnexpectedError:
description: UnexpectedError
content:
application/json:
schema:
$ref: '#/components/schemas/UnexpectedError'