cancel
Showing results for 
Search instead for 
Did you mean: 

sap-approuter-userapi calling the route from ui xs-app.json but not app-router xs-app.json

rakeshBaggam
Explorer
0 Kudos
329

Hi,

I have developed a sample ui5 MTA app using Stand alone app router. I am having two xs-app.json files(one from ui5 app, another from app router). I wanted to read the user information using sap-approuter-userapi service. I have maintained the route in xs-app.json file of app-router. But After deployment to CF when I run the app router  URL, in Network tab I can see that user-api call is getting failed. its giving me 404-Not found. What i observed is user-api is taking the default route which is defined in xs-app.json file of ui. Even though i have defined a seperate user-api route in xs-app.json file of router, it's not considering. May i know what am i missing? 

If i maintained the user-api route in xs-app.json file of ui5 app then I am getting the success and getting the data as well.

My point is why its considering the ui-xs-app.json file but not routers xs-app.json file?

please note that i have maintained user-api datasource/model at manifest.json of ui app in the correct way only.

Please see the attachements for error/ui-xs-app.json/router-xs-app.json 

 

Thank you.

Accepted Solutions (0)

Answers (0)