简体   繁体   中英

Backbone Jaydata Odata

I have an OData(v3) endpoint that will be used with a mobile Backbone application.

I am trying to integrate Jaydata to avoid building the OData queries.

I am still developing my Backbone skills and I am not sure how to integrate Jaydata with my Models/Collections.

My first assumption is that I need to override the sync method but I am not sure this is the way to go.

Any suggestions or examples would be great.

If you have an alternative to Jaydata for my problem that would also be great.

Thanks

Just as an interims solution till JayData's Backbone adapter is ready ;-). For an example that connects Backbone to an OData v2 provider (SharePoint) check out https://github.com/lstak/Backbone.SharePoint/blob/master/backbone-sharepoint.odata.js . This shows you how to leverage Backbone's sync method to accomplish CRUD operations. No fancy OData function support of course.

We do plan to support backbone in the nearest future. I think that you can have a pre-release version within a few weeks maybe sooner. Cheers Gabor

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM