Details
-
Task
-
Resolution: Done
-
Major
-
None
-
None
Description
Create a policy that "ignores" certain paths within the API. For example, the API being proxied/managed may have the following REST resources:
/invoices
/invoices/
/invoices/{id}
/items
/invoices/
/items/
{itemId}And let's say that the service provider wishes to manage this API via apiman using two different Plans - one Plan allows full access to the API, but the other Plan doesn't allow the granular access to the invoice items.
To accomplish this, Plan 2 would have an Ignored Resources policy configured with the following path:
/invoices/./items.
The implementation of the policy would simply be to match all configured path exclusions (which would be regular expressions) to the requested API resource. If any of the exclusion paths matched, the policy would fail with a 404.