2020-04-21 10:53:07 +02:00
|
|
|
/model/{name}:
|
|
|
|
parameters:
|
|
|
|
- $ref: 'oas.yaml#/components/parameters/Name'
|
|
|
|
get:
|
|
|
|
summary: TODO get model data by name
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: all, levels: dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /model
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: binary model data
|
|
|
|
content:
|
|
|
|
application/octet-stream:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
401:
|
|
|
|
$ref: 'oas.yaml#/components/responses/401'
|
|
|
|
403:
|
|
|
|
$ref: 'oas.yaml#/components/responses/403'
|
|
|
|
404:
|
|
|
|
$ref: 'oas.yaml#/components/responses/404'
|
|
|
|
500:
|
|
|
|
$ref: 'oas.yaml#/components/responses/500'
|
|
|
|
put:
|
|
|
|
summary: TODO add/replace model data by name
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: all, levels: dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /model
|
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
description: binary model data
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
$ref: 'oas.yaml#/components/responses/Ok'
|
|
|
|
400:
|
|
|
|
$ref: 'oas.yaml#/components/responses/400'
|
|
|
|
401:
|
|
|
|
$ref: 'oas.yaml#/components/responses/401'
|
|
|
|
403:
|
|
|
|
$ref: 'oas.yaml#/components/responses/403'
|
|
|
|
404:
|
|
|
|
$ref: 'oas.yaml#/components/responses/404'
|
|
|
|
500:
|
|
|
|
$ref: 'oas.yaml#/components/responses/500'
|
|
|
|
delete:
|
|
|
|
summary: TODO delete model data
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /model
|
2020-04-23 13:59:45 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
$ref: 'oas.yaml#/components/responses/Ok'
|
|
|
|
400:
|
|
|
|
$ref: 'oas.yaml#/components/responses/400'
|
|
|
|
401:
|
|
|
|
$ref: 'oas.yaml#/components/responses/401'
|
|
|
|
403:
|
|
|
|
$ref: 'oas.yaml#/components/responses/403'
|
|
|
|
404:
|
|
|
|
$ref: 'oas.yaml#/components/responses/404'
|
|
|
|
500:
|
|
|
|
$ref: 'oas.yaml#/components/responses/500'
|