Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Proxy basepath with common beginning

Hello apigee community. I have two proxies with the following base paths

/api
/api/contacts

Can they be deployed as two separate proxies? do you think there might be some routing issues like request like GET /api/contacts and processed by proxy with base path /api?


Thank you for you help!

PS: I am using Apigee X.

Solved Solved
4 3 215
2 ACCEPTED SOLUTIONS

yes you can do that.

Apigee will  match inbound requests to the longest matching basepath.  This means your apiproxy with the basepath of /api will never receive a request with a leftmost path of /api/contacts . . . 

But that's probably what you want !

View solution in original post

Thank you very much for the answer, this is exactly what we need.

PS: for me and company I am working on you like a rockstar.

View solution in original post

3 REPLIES 3

yes you can do that.

Apigee will  match inbound requests to the longest matching basepath.  This means your apiproxy with the basepath of /api will never receive a request with a leftmost path of /api/contacts . . . 

But that's probably what you want !

Thank you very much for the answer, this is exactly what we need.

PS: for me and company I am working on you like a rockstar.

Thanks for that, and I'm glad to help!