I've created proxy for my REST API:
- Default Target Endpoint URL: http://products.example.com
- Default Proxy Endpoint Base Path: /products/v2
- Proxy URL: http://example.apigee.net/products/v2
When you call target endpoint directly, example:
POST http://products.example.com/items
you'll get response with location header like this
http://products.example.com/items/123131
But if I go through proxy:
POST http://example.apigee.net/products/v2/items
then location header for newly created resource still points to target URL:
http://products.example.com/items/3423423
But I expected to get
http://example.apigee.net/products/v2/items/3423423
The question is: how to configure proxy to rewrite URLs in response to Proxy URLs?