-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
159 lines (155 loc) · 3.32 KB
/
openapi.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
openapi: 3.0.0
info:
title: artery
version: 1.0.0
description: 'https://github.com/raas-dev/artery'
contact: {}
tags:
- name: json
- name: non-json
- name: no-test
paths:
/:
get:
description: Responds version
tags:
- json
operationId: version
x-eov-operation-handler: handlers
responses:
'200':
description: ok
content:
application/json:
schema: {}
/spec:
get:
description: Respond OpenAPI definition
tags:
- non-json
operationId: spec
x-eov-operation-handler: handlers
responses:
'200':
description: ok
content:
text/yaml:
schema: {}
/docs:
get:
description: Responds API docs
tags:
- non-json
operationId: docs
x-eov-operation-handler: handlers
responses:
'200':
description: ok
content:
text/html:
schema: {}
/dns-servers:
get:
description: Respond DNS servers used
tags:
- non-json
operationId: dnsServers
x-eov-operation-handler: handlers
responses:
'200':
description: ok
content:
text/plain:
schema: {}
/to-backend:
get:
description: Respond connection to backend
tags:
- json
operationId: toBackend
x-eov-operation-handler: handlers
responses:
'200':
description: ok
content:
application/json:
schema: {}
'400':
description: bad_request
content:
application/json:
schema: {}
/users:
get:
description: Respond users mock
tags:
- no-test
operationId: getUsers
x-eov-operation-handler: mocks
responses:
'200':
description: ok
content:
application/json:
schema:
$ref: '#/components/schemas/Users'
'501':
description: not_implemented
/users/{id}:
get:
description: Respond user mock
tags:
- no-test
operationId: getUserById
x-eov-operation-handler: mocks
responses:
'200':
description: ok
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: bad_request
'501':
description: not_implemented
parameters:
- name: id
in: path
required: true
schema:
type: integer
security: []
servers:
- url: ''
components:
links: {}
callbacks: {}
schemas:
Users:
type: array
items:
$ref: '#/components/schemas/User'
User:
type: object
properties:
id:
type: string
x-faker: datatype.uuid
username:
type: string
x-faker: internet.userName
firstName:
type: string
x-faker: name.firstName
lastName:
type: string
x-faker: name.lastName
email:
type: string
x-faker: internet.email
phone:
type: string
x-faker: phone.phoneNumber
responses: {}
securitySchemes: {}