Created
October 2, 2020 08:54
-
-
Save alexrashed/2dff0107f9619054f83a148669fce215 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi" : "3.0.1", | |
"info" : { | |
"title" : "FormData Test Api Documentation", | |
"description" : "Minimal OpenAPI spec file to showcase duplicated params for formData.", | |
"version" : "0.0.1" | |
}, | |
"servers" : [ { | |
"url" : "/backend/rest" | |
} ], | |
"tags" : [ { | |
"name" : "form-param-poc", | |
"description" : "File storage resource for Fiscalization France standard" | |
} ], | |
"paths" : { | |
"/form-param-poc/{id}" : { | |
"put" : { | |
"tags" : [ "form-param-poc" ], | |
"summary" : "fullUpdate", | |
"operationId" : "form-param-poc_update", | |
"parameters" : [ { | |
"name" : "id", | |
"in" : "path", | |
"required" : true, | |
"schema" : { | |
"type" : "integer", | |
"format" : "int64" | |
} | |
} ], | |
"requestBody" : { | |
"content" : { | |
"multipart/form-data" : { | |
"schema" : { | |
"$ref" : "#/components/schemas/FormParameters" | |
} | |
} | |
} | |
}, | |
"responses" : { | |
"200" : { | |
"description" : "OK." | |
} | |
}, | |
"security" : [ { | |
"oAuthConfig" : [ ] | |
} ] | |
} | |
} | |
}, | |
"components" : { | |
"schemas" : { | |
"FormParameters" : { | |
"type" : "object", | |
"properties" : { | |
"id" : { | |
"type" : "integer", | |
"format" : "int64", | |
"readOnly" : true | |
} | |
} | |
} | |
}, | |
"securitySchemes" : { | |
"oAuthConfig" : { | |
"type" : "oauth2", | |
"flows" : { | |
"implicit" : { | |
"authorizationUrl" : "../backend/login/openid", | |
"scopes" : { } | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment