Skip to content

Commit 8a71831

Browse files
committed
feat(model-server): split openAPI spec into multiple files
1 parent 33a2617 commit 8a71831

File tree

4 files changed

+554
-203
lines changed

4 files changed

+554
-203
lines changed

api/model-server-deprecated.yaml

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
# WARNING - EXPERIMENTAL
2+
# This file was auto generated from the existing API using an IntelliJ plugin,
3+
# see https://www.jetbrains.com/help/idea/openapi.html#generate_openapi
4+
#
5+
# Manual changes were done for this 'spec' to work in-place with the
6+
# model-server for now. A lot of changes were done and are still necessary
7+
# to make this OpenAPI a viable artifact. It will most likely be split
8+
# into multiple OpenAPI files.
9+
10+
openapi: "3.0.3"
11+
info:
12+
title: "model-server deprecated API"
13+
description: "modelix deprecated API"
14+
version: "0.0.1"
15+
servers:
16+
- url: 'http://127.0.0.1:28101'
17+
description: local model-server
18+
paths:
19+
/json:
20+
get:
21+
description: ""
22+
responses:
23+
"200":
24+
$ref: '#/components/responses/200'
25+
/json/{repositoryId}:
26+
get:
27+
description: ""
28+
parameters:
29+
- name: repositoryId
30+
in: "path"
31+
required: true
32+
schema:
33+
type: string
34+
responses:
35+
"200":
36+
$ref: '#/components/responses/200json'
37+
/json/{repositoryId}/{versionHash}:
38+
get:
39+
description: ""
40+
parameters:
41+
- name: versionHash
42+
in: "path"
43+
required: true
44+
schema:
45+
type: string
46+
- name: repositoryId
47+
in: "path"
48+
required: true
49+
schema:
50+
type: string
51+
responses:
52+
"200":
53+
$ref: '#/components/responses/200json'
54+
/json/{repositoryId}/{versionHash}/poll:
55+
get:
56+
description: ""
57+
parameters:
58+
- name: repositoryId
59+
in: "path"
60+
required: true
61+
schema:
62+
type: string
63+
- name: versionHash
64+
in: "path"
65+
required: true
66+
schema:
67+
type: string
68+
responses:
69+
"200":
70+
$ref: '#/components/responses/200json'
71+
/json/{repositoryId}/{versionHash}/update:
72+
post:
73+
description: ""
74+
parameters:
75+
- name: repositoryId
76+
in: "path"
77+
required: true
78+
schema:
79+
type: string
80+
- name: versionHash
81+
in: "path"
82+
required: true
83+
schema:
84+
type: string
85+
responses:
86+
"404":
87+
description: "Not Found"
88+
content:
89+
'*/*':
90+
schema:
91+
type: string
92+
examples:
93+
Example#1:
94+
value: ""
95+
"403":
96+
$ref: '#/components/responses/403'
97+
"401":
98+
$ref: '#/components/responses/401'
99+
"500":
100+
$ref: '#/components/responses/500'
101+
"200":
102+
$ref: '#/components/responses/200json'
103+
/json/{repositoryId}/init:
104+
post:
105+
description: ""
106+
parameters:
107+
- name: repositoryId
108+
in: "path"
109+
required: true
110+
schema:
111+
type: string
112+
responses:
113+
"200":
114+
$ref: '#/components/responses/200json'
115+
/json/{repositoryId}/ws:
116+
get:
117+
description: ""
118+
parameters:
119+
- name: repositoryId
120+
in: "path"
121+
required: true
122+
schema:
123+
type: string
124+
- name: Connection
125+
in: "header"
126+
required: true
127+
description: "Websocket Connection parameter"
128+
schema:
129+
type: string
130+
- name: Upgrade
131+
in: "header"
132+
required: true
133+
description: "Websocket Upgrade parameter"
134+
schema:
135+
type: string
136+
- name: Sec-WebSocket-Key
137+
in: "header"
138+
required: true
139+
description: "Websocket Sec-WebSocket-Key parameter"
140+
schema:
141+
type: string
142+
responses:
143+
"403":
144+
$ref: '#/components/responses/403'
145+
"401":
146+
$ref: '#/components/responses/401'
147+
"500":
148+
$ref: '#/components/responses/500'
149+
"101":
150+
description: "Switching Protocols"
151+
headers:
152+
Connection:
153+
required: true
154+
schema:
155+
type: string
156+
Upgrade:
157+
required: true
158+
schema:
159+
type: string
160+
Sec-WebSocket-Accept:
161+
required: true
162+
schema:
163+
type: string
164+
/json/generate-ids:
165+
post:
166+
description: ""
167+
parameters:
168+
- name: quantity
169+
in: "query"
170+
required: false
171+
schema:
172+
type: integer
173+
responses:
174+
"403":
175+
$ref: '#/components/responses/403'
176+
"401":
177+
$ref: '#/components/responses/401'
178+
"500":
179+
$ref: '#/components/responses/500'
180+
"200":
181+
$ref: '#/components/responses/200json'
182+
183+
components:
184+
responses:
185+
"200":
186+
description: OK
187+
content:
188+
text/plain:
189+
schema:
190+
type: string
191+
"200json":
192+
description: OK
193+
content:
194+
application/json:
195+
schema:
196+
type: string
197+
"400":
198+
description: "Bad Request"
199+
content:
200+
text/plain:
201+
schema:
202+
type: string
203+
"401":
204+
description: "Unauthorized"
205+
content:
206+
text/plain:
207+
schema:
208+
type: string
209+
403:
210+
description: "Forbidden"
211+
content:
212+
text/plain:
213+
schema:
214+
type: string
215+
"404":
216+
description: "Not Found"
217+
content:
218+
text/plain:
219+
schema:
220+
type: string
221+
"500":
222+
description: "Internal Server Error"
223+
content:
224+
text/plain:
225+
schema:
226+
type: string

0 commit comments

Comments
 (0)