-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathopenapi.yaml
193 lines (191 loc) · 4.44 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
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
openapi: "3.0.0"
info:
version: 1.0.0
title: Cogboard
description: Cogboard
servers:
- url: https://{domain}:{port}
description: The local API server
variables:
domain:
default: localhost
description: api domain
port:
enum:
- "8092"
default: "8092"
- url: ws://{domain}:{port}
description: The Websocket server
variables:
domain:
default: localhost
description: websockets
port:
enum:
- "$ws_port"
default: "$ws_port"
paths:
/api/version:
get:
operationId: version-handler
responses:
default:
description: App Version Handler
/api/config:
get:
operationId: boards-get-handler
responses:
default:
description: Boards Get Handler
/api/config/save:
post:
operationId: boards-save-handler
security:
- cogboardAuth: []
responses:
default:
description: Boards Save Handler
/api/board/{id}:
parameters:
- name: id
in: path
description: board add, update, delete
required: true
schema:
type: string
post:
operationId: boards-update-handler
security:
- cogboardAuth: []
responses:
default:
description: Board Add/Update Handler
delete:
operationId: boards-delete-handler
security:
- cogboardAuth: []
responses:
default:
description: Board Delete Handler
/api/login:
post:
operationId: login-handler
responses:
default:
description: Generate JWT Token
/api/session/refresh:
post:
operationId: session-handler
responses:
default:
description: Refresh JWT Token
/api/endpoints:
get:
operationId: endpoints-get-handler
security:
- cogboardAuth: []
responses:
default:
description: Endpoint list
post:
operationId: endpoints-update-handler
security:
- cogboardAuth: []
responses:
default:
description: Endpoint Update Handler
/api/endpoints/{id}:
parameters:
- name: id
in: path
description: endpoint to be fetched, updated or deleted
required: true
schema:
type: string
get:
operationId: endpoint-by-id-get-handler
security:
- cogboardAuth: []
responses:
default:
description: Endpoint with id
delete:
operationId: endpoints-delete-handler
security:
- cogboardAuth: []
responses:
default:
description: Endpoint Delete Handler
/api/credentials:
get:
operationId: credentials-get-handler
security:
- cogboardAuth: []
responses:
default:
description: Credentials list
post:
operationId: credentials-update-handler
security:
- cogboardAuth: []
responses:
default:
description: Credentials Update Handler
/api/credentials/{id}:
parameters:
- name: id
in: path
description: credential to be fetched, updated or deleted
required: true
schema:
type: string
get:
operationId: credential-by-id-get-handler
security:
- cogboardAuth: []
responses:
default:
description: Credential with id
delete:
operationId: credentials-delete-handler
security:
- cogboardAuth: []
responses:
default:
description: Credential Delete Handler
/api/user/update:
post:
operationId: user-update-handler
security:
- cogboardAuth: []
responses:
default:
description: User Update Handler
/api/widget/update:
post:
operationId: widget-update-handler
security:
- cogboardAuth: []
responses:
default:
description: Widget Update Handler
/api/widget/delete:
post:
operationId: widget-delete-handler
security:
- cogboardAuth: []
responses:
default:
description: Widget Delete Handler
/api/widget/contentUpdate:
post:
operationId: widget-content-update-handler
responses:
default:
description: Widget Content Refresh Handler
components:
securitySchemes:
cogboardAuth:
type: http
scheme: bearer
bearerFormat: JWT