Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-180

Policy - Ignored Resources Policy

    XMLWordPrintable

Details

    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/

      {id}
      /invoices/{id}

      /items
      /invoices/

      {id}

      /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.

      Attachments

        Activity

          People

            JDiscolo Ruben Romero (Inactive)
            ewittman@redhat.com Eric Wittmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: