Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODELIX-646 Use resource based routing in model-server #353

Merged
merged 19 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b4e396b
feat(model-server): migrate to resource based routing based on OpenAP…
nkoester Dec 1, 2023
e1959f1
feat(model-server): deduplicate openapi responses
nkoester Dec 5, 2023
11985e3
feat(model-server): add known specific operationIds
nkoester Dec 5, 2023
eefe8a1
chore(model-server): remove commented legacy code
nkoester Dec 5, 2023
33a2617
feat(model-server): use openapi resources in KeyValueLikeModelServer
nkoester Dec 5, 2023
8a71831
feat(model-server): split openAPI spec into multiple files
nkoester Dec 7, 2023
9a095d7
feat(model-server): generate openAPI task per file
nkoester Dec 7, 2023
672d329
feat(model-server): use resource based paths in all model-server endp…
nkoester Dec 7, 2023
e2c182d
fix(light-model-client): use resource ktor plugin in tests
nkoester Dec 8, 2023
9764c5b
fix(model-server): use correct resource for posting contentVersionHash
nkoester Dec 8, 2023
770fdfa
chore(model-server): use 'to' notation for pairs
nkoester Dec 8, 2023
c640a37
build: add dedicated openapi module
nkoester Dec 11, 2023
4768158
chore(openapi): remove empty descriptions
nkoester Dec 11, 2023
cf389fa
build: small fixes and documentation
nkoester Dec 11, 2023
f949cdc
feat(openapi): provide swagger ui of `model-server.yaml` at endpoint …
nkoester Dec 11, 2023
b1855bd
chore(openapi): use dedicated `operationId`s wherever possible
nkoester Dec 11, 2023
fab8809
chore(openapi): document serving of public api only
nkoester Dec 12, 2023
2db8b16
Merge remote-tracking branch 'origin/main' into feature/resource-base…
nkoester Jan 9, 2024
7934127
chore(openapi): add new objects endpoint
nkoester Jan 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
215 changes: 215 additions & 0 deletions api/model-server-deprecated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
# WARNING - EXPERIMENTAL
# This file was auto generated from the existing API using an IntelliJ plugin,
# see https://www.jetbrains.com/help/idea/openapi.html#generate_openapi
#
# Manual changes were done for this 'spec' to work in-place with the
# model-server for now. A lot of changes were done and are still necessary
# to make this OpenAPI a viable artifact. It will most likely be split
# into multiple OpenAPI files.

openapi: "3.0.3"
info:
title: "model-server deprecated API"
description: "modelix deprecated API"
version: "1.0.0"
servers:
- url: '/'
description: model-server
paths:
/json:
get:
responses:
"200":
$ref: '#/components/responses/200'
/json/{repositoryId}:
get:
parameters:
- name: repositoryId
in: "path"
required: true
schema:
type: string
responses:
"200":
$ref: '#/components/responses/200json'
/json/{repositoryId}/{versionHash}:
get:
parameters:
- name: versionHash
in: "path"
required: true
schema:
type: string
- name: repositoryId
in: "path"
required: true
schema:
type: string
responses:
"200":
$ref: '#/components/responses/200json'
/json/{repositoryId}/{versionHash}/poll:
get:
parameters:
- name: repositoryId
in: "path"
required: true
schema:
type: string
- name: versionHash
in: "path"
required: true
schema:
type: string
responses:
"200":
$ref: '#/components/responses/200json'
/json/{repositoryId}/{versionHash}/update:
post:
parameters:
- name: repositoryId
in: "path"
required: true
schema:
type: string
- name: versionHash
in: "path"
required: true
schema:
type: string
responses:
"404":
description: "Not Found"
content:
'*/*':
schema:
type: string
"403":
$ref: '#/components/responses/403'
"401":
$ref: '#/components/responses/401'
"500":
$ref: '#/components/responses/500'
"200":
$ref: '#/components/responses/200json'
/json/{repositoryId}/init:
post:
parameters:
- name: repositoryId
in: "path"
required: true
schema:
type: string
responses:
"200":
$ref: '#/components/responses/200json'
/json/{repositoryId}/ws:
get:
parameters:
- name: repositoryId
in: "path"
required: true
schema:
type: string
- name: Connection
in: "header"
required: true
description: "Websocket Connection parameter"
schema:
type: string
- name: Upgrade
in: "header"
required: true
description: "Websocket Upgrade parameter"
schema:
type: string
- name: Sec-WebSocket-Key
in: "header"
required: true
description: "Websocket Sec-WebSocket-Key parameter"
schema:
type: string
responses:
"403":
$ref: '#/components/responses/403'
"401":
$ref: '#/components/responses/401'
"500":
$ref: '#/components/responses/500'
"101":
description: "Switching Protocols"
headers:
Connection:
required: true
schema:
type: string
Upgrade:
required: true
schema:
type: string
Sec-WebSocket-Accept:
required: true
schema:
type: string
/json/generate-ids:
post:
parameters:
- name: quantity
in: "query"
required: false
schema:
type: integer
responses:
"403":
$ref: '#/components/responses/403'
"401":
$ref: '#/components/responses/401'
"500":
$ref: '#/components/responses/500'
"200":
$ref: '#/components/responses/200json'

components:
responses:
"200":
description: OK
content:
text/plain:
schema:
type: string
"200json":
description: OK
content:
application/json:
schema:
type: string
"400":
description: "Bad Request"
content:
text/plain:
schema:
type: string
"401":
description: "Unauthorized"
content:
text/plain:
schema:
type: string
403:
description: "Forbidden"
content:
text/plain:
schema:
type: string
"404":
description: "Not Found"
content:
text/plain:
schema:
type: string
"500":
description: "Internal Server Error"
content:
text/plain:
schema:
type: string
Loading
Loading