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

Use directories named '__' as wildcards, to match '/resource/:id' style routing. #37

Merged
merged 2 commits into from
Mar 10, 2018

Conversation

wheeyls
Copy link
Contributor

@wheeyls wheeyls commented Jun 12, 2017

In many routing schemes, parameters can be mixed into the URL
as well as the query string. I have a use case where I want to return
the same object every time you hit an endpoint '/users/:id', so this
is my approach.

We just run everything normally as before; if no match is found, we
search the path for any '__' directories and run it again.

In many routing schemes, parameters can be mixed into the URL
as well as the query string. I have a usecase where I want to return
the same object every time you hit an endpoint '/users/:id', so this
is my approach.

We just run everything normally as before; if no match is found, we
search the path for any '__' directories and run it again.
@odino
Copy link
Contributor

odino commented Jun 12, 2017

@mohdhallal can you have a look?

@dumindu
Copy link

dumindu commented Jul 27, 2017

please add this feature to mockserver

@odino odino merged commit 4a5963a into namshi:master Mar 10, 2018
@odino
Copy link
Contributor

odino commented Mar 10, 2018

Ouch guys, sorry for lagging on this one! Just merged and rolled it out in 1.7.0

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

Successfully merging this pull request may close these issues.

3 participants