Layer7 API Management

  • 1.  Web API resolution path wildcard

    Posted May 31, 2017 03:19 PM

    HI all,

     

    I have 2 endpoints in CA gateway where the 'customer id' is part of the uri.

     

    Service Display Name: "/customer/{id}", Resolution Path: "/v1/customer/*"
    Service Display Name: "/customer/{id}/status", Resolution Path: "/v1/customer/*/status"

     

    When I call both, the request is resolved only in first service (/v1/customer/*) and (/v1/customer/*/status) isan't called.

     

    Call 1: /v1/customer/123
    Call 2: /v1/customer/123/status

     

    Do I have a way to setting resolution without wildcard in order to support both calls? Can I use regular expression in resolution path (like [0-9]) ?



  • 2.  Re: Web API resolution path wildcard
    Best Answer

    Broadcom Employee
    Posted May 31, 2017 07:52 PM

    Hello porcel ,

    You don't have to have 2 service endpoints. You may keep "/v1/customer/*" only, and change  "/v1/customer/*/status" to a policy fragment and a branch of "/v1/customer/*". In "/v1/customer/*", you are free to use any regex.

     

    Regards,

    Mark