In this part 6 of 8 part blog series, I will explain, how SAP Cloud Platform, API Management can be used to securely publish APIs from an on-cloud Success Factor System. Once the connection with the on-cloud Success Factor System is established through API Provider, API Management can connect to it and make them available in a secure and documented way.
Success Factor Overview
Success Factors is a worldwide cloud-based business execution software provider and a part of the powerful SAP productivity suite. The tool allows for collaboration, onboarding and a variety of social business tools, and combines those with a learning management system (LMS), performance solution, recruiting assets, applicant tracking platform, talent management, succession planning, and HR analytics to provide you with business strategy alignment, maximum people performance, for teams of all scales and more than 60 different industries.
To learn more about Success Factor please refer to the following link: Success Factor Blogs
In this blog, I have taken an example of my SAP Cloud Platform trial account for SAP API Management.
- You have an access to any of the Success Factor system.
Let’s get started!
Now let’s go to the SAP API Management Service. From your SAP Cloud Platform cockpit, navigate to the list of services and locate API Management Service. Click on “Access API Portal”. It is a good idea to add the SAP API Management as a bookmark to your browser now.
Click on Develop and Navigate to API Providers
Create API Provider and fill in the following details
Note that the host name and the host port correspond to the actual host and port of the system.
Since it is a cloud system hence do not select on premise check box.
Navigate to Authentication and enter the user name and the password used for basic authentication.
Lastly, navigate to the Connectivity tab, and setup the catalog service as defined below (or adapt it to your environment).
Navigate to APIs and to test the new connectivity, create a new API Proxy.
Use the previously generated API Provider and give URL as shown
Enter the remaining details and save your API Proxy.
Navigate to Test Console and click on the API Proxy you just created. Before testing it, provide Basic Authorization
Click on Send, and you should see the response of your Success Factor System in the SAP Cloud Platform!
Managing OData Endpoint in SAP API Management!
API Management enables you to collect statistics for data in a message, such as product ID, price, REST action, client and target URL, and message length. The data can come from flow variables predefined by API Management or custom variable that you define. The statistical data is passed to analytics server, which analyzes the statistics and generates reports. This can be viewed by creating custom charts.
Now to collect statistics for above APIs, we will apply “statistics collector policy”
Let’s Navigate to develop, select the API proxy and open policy editor
Click on edit.
Select Statistic collector policy from right-hand side, fill in the details and click on Add
After Adding the policy, we will change the policy as shown below
Navigate to console, select created API Proxy, give the authorization and click on OK
Select Get and click on Send
Now Navigate to Analyze and click on Analyze Data
Select measures and dimensions and the result will be shown
I was able to apply these policies by following SAP Cloud Platform, API Management documentation which has now samples available for all the policies.