40905

Can I access the active version on SAP Cloud Platform of HTML5 apps through a api?

I need to access the active version on SAP Cloud Platform of HTML5 apps through an api.

I know for the java apps you have the lifecycle api: doc

But you can't access HTML5 information with this API.

What I found is this service: https://account.hana.ondemand.com/ajax/getHtml5AppDetails/{subaccountName}/{appName}

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.

Answer1:

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

You get back a json array with all your applications of that sub account, including active version and other interesting information

Hope it helps ;))

Regards Mathias

Answer2:

You could create a HTTP Proxy Servlet based on https://github.com/SAP/cloud-connectivityproxy that provides read only access to https://dispatcher.hanatrial.ondemand.com/hcproxy/b/api/accounts/<subaccount>/applications/<app> for your app.

Recommend

  • setDateTimeFormat adds an hour
  • When configuring a relational store join, can I do a one-to-many join from the ActivePivot store?
  • Long press in UiAutomation
  • 'QString' object does not support item assignment python
  • How to use GROUP BY after the Having clause Mysql
  • How to paste custom field values from the AR Invoice and AP Bill details directly into GL Transactio
  • Error while accessing shared preferences of Android App's first run
  • Can a bootstrap carousel rotate through only some of the slides?
  • How can I mimic this behavior in WPF?
  • apache won't start
  • How to use Google Places API for Web Service in android?
  • How to send POST request using html button
  • How do I connect to the Asana Rest API using c#?
  • Can't use ignoreSSLIssues in HttpBuilder version 0.7.1
  • Security Issue on Accessing Remote Image with dompdf
  • Connect to strongest access point (access point with the strongest signal) with the same SSID
  • Laravel 5.1 + PHPunit - API test returns always invalid argument error foreach
  • sweetalert2 inputoptions from file in select example
  • New Firebase failed: First argument must be a valid firebase URL and the path can't contain “.”
  • JSON encode and decode on PHP
  • Building Qt project for C++11 standard
  • Validate child input components on submit with Vee-Validate and vue js 2
  • Does Mobilefirst provide a provision to access web services directly?
  • chrome.tabs.executeScript only fires when the Developer Console is open
  • Play WS (2.2.1): post/put large request
  • Change Inet root folder for iis 7
  • How to rebase a series of branches?
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • Different response to non-authenticated users and AJAX calls
  • How to set my toolbar fixed while scrolling android
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • AT Commands to Send SMS not working in Windows 8.1
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • apache spark aggregate function using min value
  • Is it possible to post an object from jquery to bottle.py?
  • Does armcc optimizes non-volatile variables with -O0?
  • Sorting a 2D array using the second column C++
  • How can I use `wmic` in a Windows PE script?
  • How to push additional view controllers onto NavigationController but keep the TabBar?