Use proper requestBody description of file
This commit is contained in:
parent
1231ba19b7
commit
c979fed10a
|
@ -3347,6 +3347,12 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource):
|
||||||
tags:
|
tags:
|
||||||
- storage / ceph
|
- storage / ceph
|
||||||
parameters:
|
parameters:
|
||||||
|
- in: requestBody
|
||||||
|
content:
|
||||||
|
application/octet-stream:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
- in: query
|
- in: query
|
||||||
name: image_format
|
name: image_format
|
||||||
type: string
|
type: string
|
||||||
|
@ -3359,11 +3365,6 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource):
|
||||||
- qed
|
- qed
|
||||||
- vdi
|
- vdi
|
||||||
- vpc
|
- vpc
|
||||||
- in: formdata
|
|
||||||
name: file
|
|
||||||
type: binary
|
|
||||||
required: true
|
|
||||||
description: The raw binary contents of the file
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: OK
|
description: OK
|
||||||
|
|
|
@ -4695,6 +4695,17 @@
|
||||||
"post": {
|
"post": {
|
||||||
"description": "",
|
"description": "",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
{
|
||||||
|
"content": {
|
||||||
|
"application/octet-stream": {
|
||||||
|
"schema": {
|
||||||
|
"format": "binary",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"in": "requestBody"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "The type of source image file",
|
"description": "The type of source image file",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
@ -4709,13 +4720,6 @@
|
||||||
"name": "image_format",
|
"name": "image_format",
|
||||||
"required": true,
|
"required": true,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "The raw binary contents of the file",
|
|
||||||
"in": "formdata",
|
|
||||||
"name": "file",
|
|
||||||
"required": true,
|
|
||||||
"type": "binary"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
Loading…
Reference in New Issue