Skip to content

Commit

Permalink
fix(MMAP-35): GUI on upload file
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Di Benedetto committed Jun 4, 2020
1 parent a02b3f0 commit 6d6a096
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions example/swagger-files/file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"swagger": "2.0",
"info": {
"title": "Files Service",
"description": "Upload and download files",
"version": "1.2.0"
},
"paths": {
"/": {
"post": {
"consumes": ["multipart/form-data"],
"parameters": [{
"type": "file",
"in": "formData",
"name": "file"
}, {
"name": "content-type",
"in": "header",
"required": false,
"type": "string"
}],
"responses": {
"200": {
"description": "Default Response"
}
}
}
},
"/download/{filename}": {
"get": {
"parameters": [{
"type": "number",
"enum": [0, 1],
"default": 0,
"required": false,
"name": "download",
"in": "query"
}],
"responses": {
"200": {
"description": "Default Response"
}
}
}
},
"/upload": {
"get": {
"responses": {
"200": {
"description": "Default Response"
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/api-explorer/src/JsonForm/configureJsonEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function setDefaultCustomization (JSONEditor) {
this.toggle_button.classList.add('ant-btn-sm')
}

if (this.container !== undefined && this.title !== undefined) {
if (this.container !== undefined && this.title !== undefined && (key !== 'upload' && key !== 'base64')) {
this.container.classList.add('mia-container-wrapper')
}
}
Expand Down

0 comments on commit 6d6a096

Please sign in to comment.