DIY Exercise 5-2 - Use An API Implementation As Its Own Proxy
DIY Exercise 5-2 - Use An API Implementation As Its Own Proxy
Objectives
In this exercise, you configure a Mule application that has already deployed to CloudHub to manage its
own API proxies. You will:
• Configure a Mule application to enable autodiscovery for API Manager.
• Redeploy the Mule application to CloudHub.
• Test that the implementation URL is now enforcing API policies set in API Manager.
Scenario
The Accounts API has been implemented and deployed to CloudHub. Central IT has notified you that
they need more vCores allocated to another project and you must shut down the API proxy that you just
deployed in exercise 5-1.
In order to continue to enforce the current API policies, you now need to configure your implementation
to enforce the API policy set in API Manager. This is referred to as configuring a basic endpoint as a
managed API instance and can be achieved through enabling the Mule application (the API
implementation) to use autodiscovery.
Note: To complete this exercise, you must have completed exercise 5-1.
Modify the RAML spec in your Mule application to support SLA policies.
1
Verify that the endpoints are now managed by the implementation by using a web client to make
multiple requests to the implementation URL until the SLA limit is exceeded.
Note: Remember to also send values for the type query parameter and the Requester-ID header with
the requests.