cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 and REST

former_member223302
Active Participant
0 Kudos

Hi,

Does ui5 offers the developer any advantage for working with REST services?

(I know it is possible to call a rest service in ajax but the question is if UI5 gives the same support for REST as for OData)

Regards,

Elena

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

just like ORM framework(which hide sql from u), rest service is wrapped in a (ui5)model for you to consume.

Former Member
0 Kudos

I think UI5 point of view, if you use JSONModel or XMLModel instead of a OData model, we can call REST services. See sample

var oModel = new sap.ui.model.json.JSONModel();
oModel.loadData(jQuery.sap.getModulePath( <RESTURL>), "", false);