Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for x-www-form-urlencoded #93

Open
chickahoona opened this issue Feb 24, 2020 · 1 comment
Open

Add support for x-www-form-urlencoded #93

chickahoona opened this issue Feb 24, 2020 · 1 comment

Comments

@chickahoona
Copy link

Currently it is not possible to specify parameters and "x-www-form-urlencoded" them.

As an example:

body:
  application/x-www-form-urlencoded:
    properties:
      name:
        description: name on account
        type: string
        example: Naruto Uzumaki
      gender:
        enum: ["male", "female"]

This renders to:

image

Instead it should show an example like:

curl -d "name=Naruto Uzumaki&gender=male" -X POST https://example.com/oauth2/token

This is especially problematic, as one wants to describe an oauth flow, which "x-www-form-urlencoded" its parameters.

Sidenote: It was also requested here: https://github.com/raml2html/raml2html/issues/386

@wdullaer
Copy link
Owner

This would require some additional features in the template and the formatting code.
It's a good feature request. I'm not sure if/when I'll get time to look at it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants