You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to stub and endpoint that may be called with multiple methods without duplication. E.g. there is an endpoint /foo/{id} which supports PUT and POST requests.
As far as I can tell with JSON mappings there is no way to do this currently; there is only the ANY matcher which is too coarse.
Proposal:
Introduce a syntax similar to all the other matchers for request method, for example:
Motivation:
I want to stub and endpoint that may be called with multiple methods without duplication. E.g. there is an endpoint
/foo/{id}
which supportsPUT
andPOST
requests.As far as I can tell with JSON mappings there is no way to do this currently; there is only the
ANY
matcher which is too coarse.Proposal:
Introduce a syntax similar to all the other matchers for request method, for example:
If it's a good idea I'm happy to try and contribute this but it might take me a while!
The text was updated successfully, but these errors were encountered: