CRUD operation on ListItem using REST
In the previous post we have seen CRUD operation on SharePoint List. In this post we are going to discuss about the operations on listitems using rest api. Starting with the creation of Items class in our"RESTApiHelper" namespace. RESTApiHelper.Items = function(SiteUrl,ListName){ this.SiteUrl = SiteUrl; this.ListName = ListName; Get All List Items in SharePoint List this.GetAllItems = function (doSuccess, doError) { jQuery.ajax({ url: this.SiteUrl + "/_api/web/lists/GetByTitle('" + this.ListName + "')/items", type: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: doSuccess, ...