CRUD operation on Files using REST
In the previous post we have seen CRUD operation on SharePoint ListItems. In this post we are going to discuss about the operations on files in SharePoint Library using rest api. Starting with the creation of File class in our"RESTApiHelper" namespace. RESTApiHelper.Files = function (SiteUrl,ListName,FolderUrl) { this.SiteUrl = SiteUrl; this.ListName = ListName; this.FolderUrl = FolderUrl; Get All Files in Folder this.GetAllFiles = function (doSuccess, doError) { jQuery.ajax({ url: this.SiteUrl + "/_api/web/getfolderbyserverrelativeurl('" + this.FolderUrl + "')/Files", type: "GET", headers: { ...