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

Proxy is appending path to target end point

Following is my use case. I have a proxy with base path {myBasePath} . I am hitting this proxy with the path https://myapigeedomain.com/myBasePath/path1/path2/path3/somepathvariable/path4. My target endpoint host is https://mytargetendpoint.com . I want to call my target with following path ...

https://mytargetendpoint.com/path3/somepathvariable/path4 . I want to remove /path1/path2 from my request path and just get /path3/somepathvariable/path4 which I need to append at the end of target end point. How to do that ? Right now it's getting wrong endpoint which is https://mytargetendpoint.com/path1/path2/path3/somepathvariable/path4 which has something unwanted.

Solved Solved
0 8 926
1 ACCEPTED SOLUTION

Can you just modify your basepath so that it is myBasePath/path1/path2 ?

View solution in original post

8 REPLIES 8