update all definitions to openapi3
This commit is contained in:
20
model.yaml
20
model.yaml
@@ -7,7 +7,7 @@ info:
|
||||
license:
|
||||
name: Apache 2.0
|
||||
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
version: 1.0.3
|
||||
version: 1.0.4
|
||||
servers:
|
||||
- url: https://dev.k8s.tcloud.enginner/api/model/v1
|
||||
- url: http://dev.k8s.tcloud.enginner/api/model/v1
|
||||
@@ -43,12 +43,16 @@ paths:
|
||||
- info
|
||||
properties:
|
||||
info:
|
||||
type: string
|
||||
description: This is actually a UploadInfo but swagger 2.0 does
|
||||
not support that
|
||||
type: object
|
||||
description: Json metadata of model
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
file:
|
||||
type: string
|
||||
description: model
|
||||
description: model itself
|
||||
format: binary
|
||||
required: true
|
||||
responses:
|
||||
@@ -82,16 +86,14 @@ paths:
|
||||
responses:
|
||||
200:
|
||||
description: The requested model
|
||||
content: {}
|
||||
content:
|
||||
application/octet-stream: {}
|
||||
404:
|
||||
description: A model with this Id does not exist.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ApiResponse'
|
||||
application/octet-stream:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ApiResponse'
|
||||
delete:
|
||||
tags:
|
||||
- model
|
||||
|
||||
Reference in New Issue
Block a user