Skip to Content
0

UI5 and REST

Jun 01, 2017 at 02:45 PM

58

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jun 01, 2017 at 03:24 PM
0

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);

Share
10 |10000 characters needed characters left characters exceeded
Jun Wu Jun 01, 2017 at 09:21 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded