cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi Experts,

We have a requirement to consume a REST API in an SAPUI5 application developed in SAP Business Application Studio (BAS). I am able to consume ODATA service but for a REST API getting HTTP 404 error code, can you all please look at below scenario and help if I am missing out something. This is now on high priority any sort of help would be much appreciated.

Please note below:

I have create a FIORI app in SAP BAS having Target Runtime as Cloud Foundry and Using MANAGED APPROUTER, app id in manifest is ns.zzidexx2

Create a destination name "jsonplaceholder" in subaccount

Modified xs-app.json to include a route for redirection of API calls to destination

calling the REST API in view controller along with destination name

Tested the destination "jsonplaceholder" from BAS, it is working fine

-Regards,
Rauf Shaikh

View Entire Topic
leonikussmaul
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Rauf,

Does the endpoint return successfully in tools like Postman? As mentioned by other users, it doesn't seem to be an issue related to your destination or xs-app.json, so i would suggest cross-checking the API outside of BAS first if you haven't done so yet.