raveenapv
6 years agoOccasional Visitor
Open API Spec 3.0 - how to specify Formparam & Body in parameters
How we will specify our formdata parameter in the open API spec 3.0 document. Also why body parameter is removed and what is the alternative to do the below code snippet from swagger 2.0 in 3.0?
parameters:
- in: formData
name: name
type: string
description: A person's name.
In OpenAPI 3.0, "in: body" and "in: formData" parameters have been replaced with the "requestBody" keyword. Check out the examples here:
https://swagger.io/docs/specification/describing-request-body/