Querying SAP APIs in JavaScript or TypeScript


After completing this lesson, you will be able to Query an SAP API using the SAP Cloud SDK in a JavaScript and TypeScript program.

Consulting the SAP Cloud SDK for JavaScript reference documentation

Access the reference documentation

The reference documentation of SAP Cloud SDK can be accessed via the following steps:

  1. Open: https://sap.github.io/cloud-sdk
  2. Choose Get started with the SDK for JavaScript.

The Core Libraries

The SDK consists of a few core libraries and a number of API-specific pregenerated libraries.

Generating an OData Client

The OData client generator allows you to generate custom OData client libraries for OData services. You can then access these services from your code using the client libraries. For details how to generate your libraries, see the standard documentation at Generate an OData client for JavaScript.

Using the client libraries to consume the SAP APIs

Information about the way to use the client libraries to interact with the SAP APIs is described in the following pages of the standard documentation:

Log in to track your progress & complete quizzes