How to define form-params in open api specification file in apigee cloud?

Hello Team,

Can anyone share sample specification file of OAuth client credentials for token generation. Here I want to pass data in form parameters.

Give sample code for how to define form params in specification file(OpenAPI 3.0.0)

Thank you,

0 5 465
5 REPLIES 5

Not applicable

You need to just change the content type to application/x-www-form-urlencoded and in body send the values

LMGTFY

Here is the relevant section of the OpenAPI Spec.

Here is an example of the exact thing you asked about. It's OpenAPI Spec 2.0, but I think the same thing works in v3.0

Not applicable

Below url has the example of Openapi 3 ref: https://swagger.io/docs/specification/describing-request-body/

Hello,

From param fields are no reflecting in portal to pass the input to the api.

Thanks

You can send the form params in body, the content type will automatically take that as form param.