Skip to content

Support optional query parameters #291

Description

@stefan-schweiger

It would be great if not all query parameters would be required. E.g. if I set something up like the config below which does a "ShouldMatch" with .* I think a request like this should also be accepted POST /sms.do?to=test.

- request:
    method: POST
    path: /sms.do
    query_params:
      from:
        matcher: ShouldMatch
        value: '.*'
      to:
        matcher: ShouldMatch
        value: '.+'
  response:
    status: 200
    body: |-
      {
        "count": 1,
        "error": null
      }

Overall I also think there should be an option to just ignore all query parameters and only match on the path, because honestly in the above example I couldn't even care less about the actual query parameters, I just always want my response returned for all requests.

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