Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 3.52 KB

README.md

File metadata and controls

58 lines (34 loc) · 3.52 KB

Create an API Proxy

⚠️ Disclaimer When completing exercises, some data values or sceenshots may not match what you see on your screen. It is because the tenant you are working with will be unique to you.

In this exercise, we will create an API proxy to connect to a relevant API provider, to discover OData services from SAP Gateway i.e. GWSAMPLE_BASIC. At the end of this exercise, you will have an API proxy for SAP Gateway System. You can use this API proxy to get usage analytics of an API, add detailed documentation about each method, hide specific methods from consumers and API documentations and activate API proxy.

Creating API Proxy Steps

Objective: After completing these steps you will have created an API Proxy, by doing this, in this exercise you will touch upon Manage phase of API life cycle management which in turns fast tracks adding functionality like traffic management, transformation, documentation without changing the implementation layer.

  1. Navigate to APIs Portal - From the Home screen expand the Menu on the left, and expand Design, then click on API. This will bring up the Create API menu.

  2. Click the Create button

  3. From the drop-down select the SAPDeveloperSystemES5 API Provider created in the previous exercise.

  4. Click on Discover.

  5. Select the GWSAMPLE_BASIC services by using the search bar to search for sample to narrow down the list. Next click on the radio button for GWSAMPLE_BASIC. Then Click on OK.

  6. The remaining fields from the API Proxy creation screen are populated from the OData metadata. Enter in the "Version" field TechEd2022. Then click Create.

  7. Click Save.

  8. Note API Proxy status is Not Deployed and not yet accessible. Click on action button from right side and select Deploy to deploy API Proxy.

Now you have a working, accessible API Proxy for your ECC API.

Testing the newly created API Proxy

Now that you have created an API proxy on top of an API discovered from the ECC backend and deployed it to make it accessible, it can be helpful to run a quick test to ensure that basic functionality is in place.

  1. To Test your API proxy, expand the menu and expand Test then select APIs.

  2. Select your API - in this case GWSAMPLE_BASIC_TechEd2022. Next select Authentication: None and change to Basic Authentication. Enter your ES5 user name and password. Then make sure the BusinessPartnerSet resource is selected from URI drop down.

  3. Click the Send Button - you should receive back the sample API Data.

Summary

Congratulations! You've now successfully created and deployed an API Proxy, and tested that it is successfully able to return data from the backend!

Continue to - Exercise 3 - Create an API Product