Skip to content

Instantly share code, notes, and snippets.

@alexrashed
Created October 2, 2020 08:54
Show Gist options
  • Save alexrashed/2dff0107f9619054f83a148669fce215 to your computer and use it in GitHub Desktop.
Save alexrashed/2dff0107f9619054f83a148669fce215 to your computer and use it in GitHub Desktop.
{
"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