smartdocs swagger 2.0 formData parameter rendering

Hi community,

I am working on documenting my API using smartdocs/swagger 2.0 and realised that parameters that are in "formData" are not rendered in portal.

Check this out:

...

"delete": {
    "description": "Revoke an active access token",
    "operationId": "revoke-access-token",
    "parameters": [
        {
            "name": "token",
            "description": "Access token to be revoked",
            "in": "formData",
            "required": true,
            "type": "string"
        }
    ],
    "responses": {
        "200": {
            "description": "Success"
        }
    }
}
...

I am attaching the portal rendering of this to this question.

Is there anything I am doing wrong or is this not supported yet?

Cheers

screen-shot-2015-04-23-at-152227.png

1 6 1,203
6 REPLIES 6

Dear @Ozan Seymen ,

Can you try one below ? Use query instead of formdata ..

"delete": {
    "description": "Revoke an active access token",
    "operationId": "revoke-access-token",
    "parameters": [{
        "name": "token",
        "description": "Access token to be revoked",
        "in": "query",
        "required": true,
        "type": "string"
    }],
    "responses": {
        "200": {
            "description": "Success"
        }
    }
}

I already know that query works. My question is about formdata.

@Ozan Seymen Were you able to get "formdata" working? I am having a similar issue with my Swagger file.

No @sudheendra1 - haven't tested with GA release yet.

pinedajam
Participant I

Hi, any updates on this? I am also encountering teh same issue. when I use postman, it is working, but when I am calling through my Swagger 2.0 spec, I am getting issues with passing the grant type in formData.

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