Expose Integration Flow Endpoint as API and Test the Flow
Beginner
20 min.
Define the endpoint of the integration flow developed in the last tutorial as an application programming interface (API).
You will learn
- How to define and expose an integration flow endpoint as an API
- How to assign a policy to your API
Prerequisites
- You have 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.
Context
In this tutorial, you will define the endpoint of the integration flow developed in the last tutorial as an application programming interface (API).
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 have performed these steps, finally, you will call the API to fetch the product details.