At runtime, the application router tries to fetch the xs-app.json file from the HTML5 application in the HTML5 Application Repository, and to use it for routing the request.
A valid request to an application router that uses the HTML5 Application Repository must have the following format:
https://<tenantId>.<appRouterHost>.<domain>/<bsPrefix>.<appName-appVersion>/<resourcePath>
For example:
https://tenant1.myapprouter.cf.sap.hana.com/comsapappcountry.countrylist/index.html
|
Placeholder |
Mandatory |
Description |
|---|---|---|
|
bsPrefix |
No |
Used when the application is provided by a business service bound to this approuter. |
|
appName |
Yes |
Used to uniquely identify the application in HTML5 Application Repository.
|
|
appVersion |
No |
Used to uniquely identify a specific application version in HTML5 Application Repository. If no version is provided, the default application version will be used. |
|
resourcePath |
Yes |
The path to the file as it was stored in HTML5 Application Repository. |
When processing a request at runtime, the following algorithm is applied:
-
If no HTML5 application is found in HTML5 Application Repository for the current request, the central application router
xs-app.jsonwill be used for routing. -
If the HTML5 application exists in HTML5 Application Repository but no
xs-app.jsonfile is returned, an error message will be issued and the request processing will be stopped.