cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume rest services in Fiori application

kvrsaicharan1152
Explorer
0 Kudos

Hi guys,

I have rest api having data . I need to trigger that rest api in fiori application .I don't know how to do that .Can anyone explain that to me

Accepted Solutions (0)

Answers (1)

Answers (1)

geert-janklaps
Active Contributor

Hi,

Please have a look at following tutorial, it explains how to consume an rest API (in this case OData based, but same principles apply to regular REST services):

https://ui5.sap.com#/topic/44062441f3bd4c67a4f665ae362d1109

Just keep in mind that you'll need some kind of proxy to be able to access the API from a SAPUI5-based application. (to prevent CORS errors)

This is described in the tutorial as well.

Best regards,

Geert-Jan Klaps