Skip to content

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

Description

@chickahoona

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions