Use proper requestBody description of file

This commit is contained in:
Joshua Boniface 2020-02-09 20:59:03 -05:00
parent 1231ba19b7
commit c979fed10a
2 changed files with 17 additions and 12 deletions

View File

@ -3347,6 +3347,12 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource):
tags:
- storage / ceph
parameters:
- in: requestBody
content:
application/octet-stream:
schema:
type: string
format: binary
- in: query
name: image_format
type: string
@ -3359,11 +3365,6 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource):
- qed
- vdi
- vpc
- in: formdata
name: file
type: binary
required: true
description: The raw binary contents of the file
responses:
200:
description: OK

View File

@ -4695,6 +4695,17 @@
"post": {
"description": "",
"parameters": [
{
"content": {
"application/octet-stream": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"in": "requestBody"
},
{
"description": "The type of source image file",
"enum": [
@ -4709,13 +4720,6 @@
"name": "image_format",
"required": true,
"type": "string"
},
{
"description": "The raw binary contents of the file",
"in": "formdata",
"name": "file",
"required": true,
"type": "binary"
}
],
"responses": {