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] Wildcard routing in request_path #1585

Closed
merlindorin opened this issue Sep 1, 2016 · 5 comments
Closed

[feature request] Wildcard routing in request_path #1585

merlindorin opened this issue Sep 1, 2016 · 5 comments

Comments

@merlindorin
Copy link

Some people are interesting with url params mapping. This is good but hard to implement. Url params mapping is sugar (this can be done easily in our app, it's an usual job) from my point of view.

I think that a good first step will be to allow wildcard in url. It's more simple and not a sugar (from my point of view again, I'm not a lua developer).

This feature is very interesting for deep APIs.

This is an example of one of our use case :
I have 3 endpoints :

  • /me
  • /me/organizations
  • /me/organizations/*/project

Each endpoint is a microservice.

Our platform is hosted on AWS, as a workaround, we created an Application ELB with these routes and in kong we have only one upstream : /me => ELB. ELB do the job for routing.

Without #1130, We need to use ELB for loadbalancing beetween our microservices. If wildcard (or more, #677) and this #1130 are resolved... private ELB will not be necessary in the future :D.

Related to #677

@thibaultcha thibaultcha changed the title [ Feature Request ] Wildcard routing [feature request] Wildcard routing in request_path Sep 2, 2016
@kvaillant
Copy link

+1

@veris-neerajdhiman
Copy link

veris-neerajdhiman commented Dec 27, 2016

@iam-merlin I have similar requirement and I am unable to find any solution , So I was just wondering did you find any solution for the same ?

@merlindorin
Copy link
Author

we trick it on aws with an application load balancer... we are looking for a better solutions :/

@kumarinstor
Copy link

my node js API is like /student/: id how should I add this in kong please help me

@hbagdi
Copy link
Member

hbagdi commented Mar 5, 2018

This feature is now supported by Kong.
Refer to docs https://getkong.org/docs/0.12.x/proxy/#using-regexes-in-uris

@hbagdi hbagdi closed this as completed Mar 5, 2018
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

6 participants