-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yml
118 lines (114 loc) · 2.72 KB
/
openapi.yml
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
openapi: "3.0.3"
info:
title: Server
version: "1.0"
servers:
- url: https://api.server.test/v1
components:
schemas:
ErrorItem:
type: object
properties:
name:
type: string
description: Name of parameter or field.
example: error message
code:
type: string
description: Error code.
example: "Empty"
Description:
type: string
description: Description.
example: The field is empty
required:
- "name"
Error:
type: object
additionalProperties: false
properties:
code:
type: integer
description: HTTP status code.
example: 400
status:
type: string
description: Status.
example: "Bad Request"
reason:
type: string
description: Error reason.
example: INVALID_PARAMETERS
request_id:
type: string
description: Request ID.
example: c4b9df35-1716-4099-b24f-f844b5491e22
description:
type: string
description: Description.
example: Something went wrong.
debug:
type: string
description: Debug information.
example: S0011.
details:
type: object
items:
type: array
items:
$ref: "#/components/schemas/ErrorItem"
required:
- "status"
- "code"
responses:
400BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
401Unauthorized:
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
402PaymentRequired:
description: Payment required
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
403Forbidden:
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
404NotFound:
description: Not found
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
409Conflict:
description: Conflict
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
500InternalServerError:
description: Internal server error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
paths:
/healthcheck:
get:
tags:
- system
summary: Server is running.
responses:
"200":
description: OK