Implementing APIs
Policies can perform such functions as secure, throttle, and route calls between front-end clients and back-end servers. The basic implementation includes the API Request Policy and the Service Request Policy. This is the simple proxy pattern which provides an end-point for front-end clients, and routes the request to some sort of back-end service and returns the response.
You can add additional policies to an API, as necessary. Policies fall into several different categories:
-
Security: such as Key Validation
-
Traffic Management: such as Application Rate Limiting
-
Interface Management: such as Header Validation and Interface Filtering
-
Other: such as Groovy Script
To implement your API, follow these basic steps:
-
Sign in to the Management Portal of API Platform Cloud Service.
-
Select the API and edit it.
-
Configure the API Request Policy.
-
Configure the Service Request Policy.
-
Apply other policies as necessary.
-
Test the API with the policies.