Exercise: Testing APIs in the SAP Business Accelerator Hub

Objective

After completing this lesson, you will be able to test APIs in the SAP Business Accelerator Hub

Testing APIs in the SAP Business Accelerator Hub

In this exercise, you learn how to find and test the APIs in the SAP Business Accelerator Hub. We will view the available APIs for SAP S/4HANA Cloud, which can be consumed to build a side-by-side scenario.

Prerequisites

For the execution of the last step in this exercise, you need to have the following software installed on your laptop. As an alternative you can use SAP Business Application Studio, executing the exact same actions.

SoftwareVersionType
Visual Studio Codelatestapplication
REST ClientlatestVisual Studio Code extension

Steps

  1. In a web browser, access the SAP Business Accelerator Hub and log on (in case you need to register, you can do it at https://account.sap.com).

  2. Search and display the API page for the business partner.

  3. Try out the Business Partner API. Execute a GET retrieving the information of the first two business partners.

  4. Retrieve your API Key.​

  5. Open the installed Visual Studio Code program, use the REST Client to execute the same business partner API. Execute a GET retrieving the information of the first two business partners.

Result

The following simulation reproduces the full exercise execution:

Log in to track your progress & complete quizzes