Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Invalid code sample URLs when using multiple parameters & pct-encoding #36

@zdne

Description

@zdne

When there are multiple parameters in a Resource URI, and at least one with a pct-encoded character the rendered code sample show incorrect URL.

Consider following blueprint:

Request URL renders fine with:

# /notes{?foo%2Ebar}
### POST
+ Response 201 (application/json)

Appending one additional query parameter, let's say a results into incorrect URL in the example. Compare (correct):

screen shot 2015-02-01 at 9 30 09 pm

With incorrect:

screen shot 2015-02-01 at 9 29 54 pm

Also

The downstream effect here is that the incorrect URI is sent to the API server so the response is malformatted creating an error.

Originally reported at SO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions