Skip to Content

Overview of Blockchain APIs on SAP API Hub

test
0 %
Overview of Blockchain APIs on SAP API Hub
Details
// Explore More Tutorials

Overview of Blockchain APIs on SAP API Hub

02/03/2019

Find SCP Blockchain Service APIs on SAP API Hub and browse through the APIs.

You will learn

  • How to find SAP Cloud Platform Blockchain Services on the SAP API Hub
  • How to look at a specific API

Step 1: Understand Blockchain Service API Layers

SAP Cloud Platform Blockchain Service APIs are split into two layers:

  • The first layer, Blockchain Technologies, encompasses all APIs for the different blockchain technologies supported. Each set of APIs are very specific to the blockchain technology and these APIs will differ between the technologies.

  • At the next layer, the blockchain application enablement are the APIs for different blockchain agnostic services. These are semantic services which offer the same functionality to an application, independent of the blockchain technology over which the service is executed.

Image depicting two layers of blockchain APIs

[ACCORDION-BEGIN [Step 2: ](Navigate to SAP API Hub)]
SAP API Hub is a documentation repository of different collections of APIs for SAP systems. The SAP API Hub hosts all the API descriptions, documentation about the APIs, and also the possibility to test the APIs. The APIs themselves are neither hosted, nor implemented, on SAP API Hub. The SAP API Hub can only be used as a testing place for testing the APIs on the relevant systems where the APIs are available.

Image depicting SAP API Hub Start Page
Log on to answer question
Step 2: Search for SCP Blockchain packages

The SAP API Hub offers large collections of API packages in different categories. Now, use the search functionality to find blockchain relevant APIs.

  • In the search field, input blockchain and press ENTER.

  • On the left, refine the search by selecting type API Package and vendor SAP.

  • The two API packages for SAP Cloud Platform - Blockchain Application Enablement and SAP Cloud Platform - Blockchain Technologies are displayed. Each API package is a collection of APIs.

  • Select SAP Cloud Platform - Blockchain Technologies.

    Image depicting SAP API Hub Searching
Log on to answer question
Step 3: Navigate to a selected API set

Within the API package, all API collections are listed. We see here APIs for Hyperledger Fabric on SAP Cloud Platform and MultiChain on SAP Cloud Platform.

Important: these are NOT APIs directly provided by the underlying blockchain technology. These are APIs hosted by the SAP Cloud Platform Blockchain Service relative to the specified blockchain technology, so as to enable a richer developer experience.

  • Select Hyperledger Fabric.
Image depicting SAP API Blockchain APIs
Log on to answer question
Step 4: View API

Listed are the relevant APIs for Hyperledger Fabric on SAP Cloud Platform. Note that one API collection is displayed.

  • On the left are listed the different subsets of APIs within the one collection. Select Chaincodes to see all APIs related to chaincode handling.

  • In the center of the screen are the relevant APIs for chaincode handling, for example GET /chaincodes to list all chaincode available on one Hyperledger Fabric channel.

Image depicting different categories for an API on SAP API Hub
  • Select a single API, for example GET /chaincodes, to see all the information about the API. Described will be documentation about the API, expected input parameters and the response that the API will return.
Image depicting details on one API on SAP API Hub
Locate the `GET /chaincodes` API and copy and paste the 200 response code example value here:
×

Next Steps

Prerequisites

Back to top