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

Feature Request - allow request path to be a list of paths #129

Open
briantist opened this issue Nov 24, 2021 · 0 comments
Open

Feature Request - allow request path to be a list of paths #129

briantist opened this issue Nov 24, 2021 · 0 comments

Comments

@briantist
Copy link

It would be great if a config could match multiple paths or path patterns. That would make it possible to not duplicate a lot of config when you want to match paths that can't completely be described with a wildcard or :value component, or just want to match a few exact paths.

Examples:

request:
  method: POST|PUT
  path: 
    - "/api/v1/method/create"
    - "/api/v1/method/delete"
request:
  method: POST|PUT
  path: 
    - "/api/v1/method/create/*"
    - "/api/v1/method/delete*"

This would let the rest of sections remain the same, and possible even act differently based on path (especially in combination with #128)

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

No branches or pull requests

1 participant