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

feat: Allow "method" condition checker to support multiple keywords #298

Closed
dukeofharen opened this issue Jan 16, 2023 · 0 comments · Fixed by #299
Closed

feat: Allow "method" condition checker to support multiple keywords #298

dukeofharen opened this issue Jan 16, 2023 · 0 comments · Fixed by #299
Labels
enhancement Enhancement of the code, not introducing new features.

Comments

@dukeofharen
Copy link
Owner

Feature Request

Describe the Feature Request

Right now, the method condition checker can only contain one method at a time. It might be useful to be able to support multiple methods.

Describe Preferred Solution

Stub with one method

id: single-method
conditions:
  method: GET
response:
  statusCode: 200
  text: OK

Stub with multiple methods: method should be one of the methods in the list

id: multipe-methods
conditions:
  method:
    - GET
    - POST
response:
  statusCode: 200
  text: OK
@dukeofharen dukeofharen added the enhancement Enhancement of the code, not introducing new features. label Jan 16, 2023
@dukeofharen dukeofharen linked a pull request Jan 16, 2023 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant