Is it possible to use whole raw string as parameter in swagger

Viewed 331

there is a url like http://someservice.com/confirm?{token}

Is this any way how to describe this endpoint in terms of swagger notation

if use as query parameter then you get

  /confirm:
    get:
      summary: ...
      parameters:
        - in: query
          name: token
        ...

http://someservice.com/confirm?token=value that is not OK

from other side it is not possible to use url notation in follow way:

  /confirm?{token}:
    get:
      summary: ...
      parameters:
        - in: path
          name: token
        ...

due to query strings in paths are not allowed.

1 Answers
Related