Access integration flow over API Management

Access integration flow over API Management

Process Integration – Access integration flow over API Portal

In the previous lesson you have created an integration package and an integration flow that can be called using a REST API. To provide this REST API to the developers or integration experts in a secure and documented manner, you will import it into the API Portal service of the SAP Integration Suite.

Chap_1_

Create an API Proxy

In this part of the lesson, we will import the model of the REST API that we have created in the integration flow.

  1. Follow the link to the Lobby.

  2. Open the OpenAPISpec.json file that you have downloaded locally at the beginning of the Technical Academy: OpenAPISpec.json

  3. Locate the servers configuration and modify the “url” element so that it matches the URL of your integration flow created previously.

Chap_3
  1. Save the file.

  2. In the API Portal service, click on Develop.

  3. Click on Import API, select the OpenAPISpec.json file you have previously changed and click on OK.

Chap_3
  1. Add _ to the end of your API name and select Save.

Chap_3
  1. The API Proxy has been created, based on the OpenAPI specification. Deploy it using the upper right corner menu.

Chap_3

Publish the REST API

As you did before, you will publish the Orders_ API proxy to the Developer Hub.

  1. In the API Management service, click on the Develop menu item on the left-hand side, then on the Products tab and finally on the previously created API product.

Chap_3
  1. On the top-right corner, click on Edit.
  2. Now select the APIs tab and click on Add.

Chap_3
  1. Select the previously created Orders_API_ API and click on OK.

Chap_3
  1. On the top-right corner select Publish.
  2. Now open the Developer Hub using the menu on the top-right corner.

Chap_3
  1. Navigate to your own Product Catalog API product and see that the Orders API has been published there.

Chap_3
  1. Select Orders API.

  2. Copy the API Proxy URL.

Test the API proxy

  1. Open the testing tool of your choice (e.g. Postman) and update the URL of your integration flow to use the API proxy URL. Alternatively, you can duplicate your existing test scenario and update the URL in the new version.

Chap_3
  1. Send the request - just as you did with a direct call to the integration flow. If everything goes well, you have just triggered your integration flow through API Management. For now, API Management only acts as pass-through, but you could easily add security, traffic management, documentation, etc., just as you did before. For now, we will only publish it to the API Business Hub Enterprise.

Congratulations! You have successfully completed the last lesson of the Process Integration unit!