问题描述
我需要通过api访问HTML5应用程序的SAP Cloud Platform上的活动版本.
I need to access the active version on SAP Cloud Platform of HTML5 apps through an api.
对于Java应用程序,我知道您拥有生命周期api: doc
I know for the java apps you have the lifecycle api: doc
但是您无法使用此API访问HTML5信息.
But you can't access HTML5 information with this API.
我发现的是这项服务:https://account.hana.ondemand.com/ajax/getHtml5AppDetails/{subaccountName}/{appName}
What I found is this service: https://account.hana.ondemand.com/ajax/getHtml5AppDetails/{subaccountName}/{appName}
这将返回带有所需信息的JSON字符串,但是尽管我拥有所有可能的管理员权限,但我无权访问此页面.
This will return a JSON string with the required info, but I'm not authorized to access this page, although I have all the possible admin rights.
所以我想知道你们中是否有人有解决我问题的想法,并且
So I'm wondering If any of you has any idea to solve my issue, and other people's issues.
推荐答案
好吧,我们需要类似的东西,并使用了这种技巧通过WebIde Api(需要登录的基本Auth)获取有效版本,从而用您的帐户替换了XXXX >
Well, we needed something similar and used this kinda hack to get the active versions via WebIde Api (need basic Auth to login) replace XXXX with your account
https://webide-XXXX.dispatcher.hana.ondemand.com/api/html5api/accounts/XXXXX/applications
您将获得一个带有该子帐户的所有应用程序的json数组,包括活动版本和其他有趣的信息
You get back a json array with all your applications of that sub account, including active version and other interesting information
希望它会有所帮助;))
Hope it helps ;))
关于Mathias
这篇关于我可以通过api访问HTML5应用程序的SAP Cloud Platform上的活动版本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!