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.

4 Likes

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 !

3 Likes

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.

3 Likes

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

3 Likes