Context
Use a REST API client of your choice to make calls using the endpoint URL.
Procedure
Get the API Endpoint.
In the Explore APIs app, select and copy the API URL.
Request the OAuth Token.
- In the API test tool, navigate to the Authorization section.
- For Type, select OAuth 2.0.
- Choose Get New Access Token.
- In the Token Name field, enter a name.
- In the Auth URL field, enter the authorization endpoint URL (sburl) from the service key.
- In the Access Token URL field, enter the token endpoint URL (<url>/oauth/token) from the service key.
- In the Client ID field, enter the client ID from the service key.
- In the Client Secret field, enter the client secret from the service key.
- For Grant Type, select Client Credentials.
- Choose Request Token.
You have now created a token. The API test tool will automatically use the token for each request to the SAP Entitlement Management REST API.
Enter the Input Parameters/Fill in the Payload.
- Navigate to the API tile selectors and select the API you would like to call.
- At the bottom-right of the page, export the JSON template for the APIs.
In the API test tool, enter the relevant parameters or fill in the payload by referring to the template you just downloaded.
You can access other relevant API hubs by selecting the API name in the Explore API app.
Call the API.
After entering the correct parameters, obtaining the correct token, and filling in the payload, execute the API call.
Summary
Demonstrates how to obtain an OAuth token, populate request payloads and execute REST calls against the SAP Entitlement Management endpoints using any REST client.