我有一个要求,我需要从网页中调用几个SAP (资产智能网络)API。我已经创建了一个网页,在点击一个按钮时,我想调用SAP AIN API -让我们来获取我在AIN中安装的设备的数量。
SAP AIN文档中提供的API是:
Application_URL/services/api/v1/equipment/$count让我们说我的AIN应用程序URL是:
https://abcxyz.dispatcher.hana.ondemand.com/sites?hc_reset#Shell-home我尝试了以下方法来形成API URL:
https://abcxyz.dispatcher.hana.ondemand.com/services/api/v1/equipment/$count --不起作用
https://abcxyz.dispatcher.hana.ondemand.com/sites/services/api/v1/equipment/$count --不起作用
https://abcxyz.dispatcher.hana.ondemand.com/sites/services/api/v1/equipment/$count?content-type=application/json --不起作用
对于以上所有URL,我得到的是Internal 500错误。
任何帮助都是有用的。
发布于 2018-04-16 23:21:38
我自己做的。我使用了API的错误主机名。
发布于 2019-09-24 15:03:45
设备计数的正确API端点是:application url + /services/api/v1/ + /equipment/$count。
应用程序URL看起来是:https://ain.xyz.hana.ondemand.com/ain (注意包含的/ain) (参见SAP AIN API教程)。
完整的API端点看起来像(用应用程序替换xyz ):https://ain.xyz.hana.ondemand.com/ain/services/api/v1/equipment/$count。
有关详细信息,请参阅SAP AIN API参考,1908版。您也可以在SAP AIN设备API of 对于SAP AIN上测试这一点。
https://stackoverflow.com/questions/49582429
复制相似问题