I’m a little confused on the relationship between Resource Paths and API Proxies within the API Product configuration.
Lets say I have 2 pass-through poxies defined with the following base URLs:
Proxy 1: catalog_productsAPI – /v1/catalog/products
The following are valid within this API:
/v1/catalog/products/
/v1/catalog/products/search
/v1/catalog/products/skus
Proxy 2: user_profilesAPI – /v1/user/profile
The following are valid within this API:
/v1/user/profiles/
/v1/user/profiles/addresses
/v1/user/profiles/favorites
Again these are pass through; that is there are no flows that are defined within any of the Proxies. Everything that targets a base url will simply be forwarded onto the the target.
If I decide to create a product with {catalog_productsAPI, user_profilesAPI}
can I use the resource paths to constrain what URIs are valid. For example, I want my product to only respond to:
/v1/catalog/products/skus → set up resource path as: /skus/**
/v1/user/profiles/favorites → set up resource path as: /favorites/**
And if I do this, then how does Apigee know which API_Proxy to forward the request to?
Do I need to include the baseURL in my resource path configuration as well?
thanks
Zameer