mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
68 lines
1.8 KiB
JSON
68 lines
1.8 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"version": "1.0.0",
|
|
"title": "SDK Unit Testing - File Downloading"
|
|
},
|
|
"schemes": [
|
|
"http"
|
|
],
|
|
"host": "localhost:3000",
|
|
"basePath": "/unittesting",
|
|
"paths": {
|
|
"/request/file_uploading": {
|
|
"get": {
|
|
"operationId": "file_uploading",
|
|
"tags": [
|
|
"Request"
|
|
],
|
|
"parameters": [
|
|
{"name": "f1",
|
|
"in": "formData",
|
|
"type": "string",
|
|
"format": "binary",
|
|
"required": true
|
|
},
|
|
{"name": "f2",
|
|
"in": "formData",
|
|
"type": "string",
|
|
"format": "binary",
|
|
"required": false
|
|
}
|
|
],
|
|
"consumes": [
|
|
"multipart/form-data"
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/response/file_downloading": {
|
|
"get": {
|
|
"operationId": "file_downloading",
|
|
"tags": [
|
|
"Response"
|
|
],
|
|
"produces": [
|
|
"multipart/form-data"
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string",
|
|
"format": "binary"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|