SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Expose Integration Flow Endpoint as API and Test the Flow

Define the endpoint of the integration flow developed in the last tutorial as an application programming interface (API).

Overview

You will learn

  • How to define and expose an integration flow endpoint as an API
  • How to assign a policy to your API

More from Melanie Cueppers

See all 13 tutorials by Melanie Cueppers →

Prerequisites

Prerequisites

You’ve created and deployed an integration flow that reads product details using an OData connection. For more information, see Design and Deploy Your First Integration Flow.

Steps

Context

In this tutorial, you will define the endpoint of the integration flow developed in the last tutorial as an application programming interface (API).

Intro

In addition, you will assign a policy template to the API to define how the API is called. A policy defines, for example, how an API can be called. In this tutorial, you assign a policy that defines an authentication of the API according to OAuth 2.0 client credentials grant. It is a secure way to control access to an API.

After you’ve performed these steps, finally, you will call the API to fetch the product details.


Step 1 Get endpoint of the integration flow

In this step, you copy the endpoint address of the integration flow.

  1. Open your integration flow.

  2. In the Deployment Status tab of the property sheet, choose the navigation link.

    Access Deployed Artifact
    Access Deployed Artifact

  3. In the Endpoints tab, choose the Copy icon.

    Endpoint URL
    Endpoint URL

Step 2 Define the API
+
Step 3 Copy credentials from service key
+
Step 4 Assign policy template
+
Step 5 Execute the API
+
Step 6 Congratulations!
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Get endpoint of the integration flow 2. Define the API 3. Copy credentials from service key 4. Assign policy template 5. Execute the API 6. Congratulations!