description not getting populated from swagger spec when using input as formData in portal

Not applicable

Hi,

We were trying to document our API in portal using swagger 2.0 and it involves 3 parameters. Two are headers while the third is formData. While all the parameters values are rendered, the description for the formData alone is not getting displayed when we import it in the portal. Below is the swagger spec of the 3 parameters and attached is the snapshot in the portal. I did try to use 'query' instead of 'formData' and the description is getting displayed. Please provide any solutions/workaround to the same.

"parameters": [

{

"name": "Authorization",

"in": "header",

"description": "Provide base64 encoded client credentials with prefix as Basic",

"required": true,

"type": "string" },

{

"name": "Content-Type",

"in": "header",

"description": "Should be set to application/x-www-form-urlencoded",

"required": true,

"type": "string" },

{

"name": "grant_type",

"in": "formData",

"description": "Should be set to \"client_credentials\"",

"required": true, "type": "string" } ]

Including my team folks - @santosh_ghalsasi; @R SNEHA SUGANTHI

Regards,

Shwetha

0 2 142
2 REPLIES 2

Hi @Anil Sagar, @Ozan Seymen, @sudheendra1,

I read a similar post like this on -

https://community.apigee.com/questions/3337/smartdocs-swagger-20-formdata-parameter-rendering.html

Can you please let me know if this is still the issue or we have got any solution to this?

Thanks,

Santosh

Hi, do we already have a solution for this? Thanks.