With step 1 to 5, you now have set up the following configuration:
The PrivateEchoAPI can now be consumed by Spring Corp.. To calls from Spring Corp. the Gold rate limiting will be applied. It needs to supply an API Key to be able to consume the PrivateEchoAPI.
Now, you are going to test if your API is accessible.
Testing API Access and Policy Functionality
Open the details page of client Spring Corp. and go to tab Contracts.
Click Try.
The test UI opens in a new browser tab. Refer to the Swagger homepage for more information about the functions of the Swagger UI.
At the top of the page, the Base URL and the link to the API definition are displayed.
Expand the displayed operations to start testing.
Open the GET/HelloWorld method.
Click Execute to test the GET request.
As displayed in section Curl, the API Key is provided correctly with the cURL call.
In the Response body section, you can see the actual response of the service. The call returned the string Hello World! along with the current timestamp.
Now you know that the PrivateEchoAPI is invokable. Next, you are going to test if the Rate Limiting Policy is applied correctly.