Archived
2

model routes

This commit is contained in:
VLE2FE
2020-08-13 12:07:40 +02:00
parent d363064dba
commit 08a9a12372
8 changed files with 273 additions and 11 deletions

View File

@ -2,7 +2,7 @@
parameters:
- $ref: 'api.yaml#/components/parameters/Name'
get:
summary: TODO get model data by name
summary: get model data by name
description: 'Auth: all, levels: dev, admin'
tags:
- /model
@ -22,14 +22,14 @@
$ref: 'api.yaml#/components/responses/404'
500:
$ref: 'api.yaml#/components/responses/500'
put:
summary: TODO add/replace model data by name
post:
summary: add/replace model data by name
description: 'Auth: all, levels: dev, admin'
tags:
- /model
requestBody:
required: true
description: binary model data
description: binary model data, Content-Type header must be set to application/octet-stream
content:
application/json:
schema:
@ -38,18 +38,14 @@
responses:
200:
$ref: 'api.yaml#/components/responses/Ok'
400:
$ref: 'api.yaml#/components/responses/400'
401:
$ref: 'api.yaml#/components/responses/401'
403:
$ref: 'api.yaml#/components/responses/403'
404:
$ref: 'api.yaml#/components/responses/404'
500:
$ref: 'api.yaml#/components/responses/500'
delete:
summary: TODO delete model data
summary: delete model data
description: 'Auth: basic, levels: dev, admin'
tags:
- /model