欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

SAP API management portal - 如何创建API provider apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

程序员文章站 2022-03-19 14:26:04
...

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

(1) The API Provider is used to abstract the connection to the backend / target system

(2) The API Proxy is the actual API which contains the logic to connect to the target system. Here you can model the flow, add security policies, transform the incoming message or look for content injections

(3) The API Product which bundles one or more API Proxies before they are exposed in the API Developer portal so they can be consumed by a developer

 

You will use SAP Cloud Platform, API Management to create an API Provider. This API Provider will connect to a backend system, in your case to the SAP Gateway Developer System. In a real-life scenario the API Provider could connect to your Developer System. Once you have created and tested an API Proxy on it, you would transport the proxy to your productive system and the underlying API Provider would now point to your productive backend system.

Where do you discover and consume Products that contain API Proxies?

登录API portal:

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

在home界面,创建一个新的API povider:

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

也可以点击Develop菜单,然后Create:

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

切换到connection面板,将host维护成指向SAP gateway demo系统的url:

sapes5.sapdevcenter.com

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

catalog service settings里,将path prefix维护成/sap/opu/odata,

Service collection url:

/IWFND/CATALOGSERVICES/ServiceCollection:

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

点击自动生成的catalog url,

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP 

确保在浏览器里能正常打开这个catalog service:

SAP API management portal - 如何创建API provider
            
    
    
        apiSAP成都研究院SAP Cloud PlatformSAP云平台ABAP