on 12-30-2021 10:15 AM
I have created my first basic UI5 application .
I just came across the App router configuration concept .But the app that I created does not have xs-app.json and manifest.yml .Do we need to create this app router manually for each SAP UI5 application .
Does the framework not create this automatically .
While generating a project from template, Make sure you have selected Add deployment configuration option as yes
and then proceed with below Deployment Configuration options to add a xs-app.json file
Here ui5-local.yaml is the one that you are interpreting manifest.yml, However ui5-local.yaml is created with different syntax as it is a mta project from web IDE.
Follow this tutorials to understand more about app router: https://developers.sap.com/tutorials/cp-cf-security-xsuaa-create.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey bodpal2 ,
You can consume that destination by providing route details like below in xs-app.json
Here source will be matching relative path of the url, target is the actual url, and destination will be the name that your basis team has created.
{
"source": "^/resources/(.*)$",
"target": "/resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello deepika94
Thanks a lot for the help
So I have a destination that our basis team has configured in the cloud connector .
I want to consume this destination in my app router . So that I don't have to write the hostname in my UI5 JavaScript code .the purpose of doing do is that I can consume OData services from my on prem box
So I just wanted to understand am I going in the right direction ?
"App router" is the place where I need to give this destination name . right ?
Some guidance will be really helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.