-
Notifications
You must be signed in to change notification settings - Fork 100
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
How to mock a all sub paths? #119
Comments
Hi @eloo, Killgrave relies on Bit of annoying, I know, but I hope the amount of I guess in the future we could add a specific edge case to handle some specific wildcard and use Please, open a new issue specific issue to request that, with all the details and feel free to contribute with the corresponding pull requests, you're more than welcome 😛 Thanks!!! |
Hi @joanlopez So if you could add this edge case function i guess it would be useful for others as well. Further i have found that the chi-router is capable of wildcards. Not sure about the other feature you use currently in gorrila/mux but maybe challanging gorrila/mux here could be an option? Thanks |
+1 for this.. its a fairly common feature.. just need a 200 response |
Great, thanks for letting us now! We'll increase the priority of this issue and start to work on it sooner than later! 👌🏻 |
🙇 really great little service this btw! thank you so much |
Hi. So I forked this project and made a change. Now the wild path is supported using this project. You need to set the value of endpoint to "/" to handle all incoming request from any path. Remember that you should add your explicit route first and then add your wild paths. For example if you have a explicit path called "api/hello" and a wild card path, you should define your "/api/hello" first and then define your wild card path. Also you can change the endpoint value from "/" to anything you want, if you think the "/" has another application for you. Link of the forked project: https://github.com/alinowrouzii/killgrave |
Hi,
i've just found your project and really like the simplicity.
But i have trouble to mock responses for requests with unknown paths.
For example i want to mock the following requests:
and so on..
and i have tried a pattern like this
But this would only match
/api
and not its sub-paths.So is this currently possible? Something like a "catch-all" endpoint?
Thanks
The text was updated successfully, but these errors were encountered: