Posts

Showing posts from March, 2015

CRUD operation on Groups using REST

In the previous post we have seen CRUD operation on SharePoint Users. In this post we are going to discuss about the operations on Groups in SharePoint Library using rest api. Starting with the creation of Groups class in our"RESTApiHelper" namespace. RESTApiHelper.Groups = function (SiteUrl) {     this.SiteUrl = SiteUrl; Get All groups in a Site         this.GetAllGroups = function (doSuccess, doError) {         jQuery.ajax({             url: this.SiteUrl + "/_api/web/sitegroups",             method: "GET",             headers: {                 "accept": "application/json; odata=verbose"             },             success: ...

CRUD operation on Folders using REST

In the previous post we have seen CRUD operation on SharePoint Files. In this post we are going to discuss about the operations on folders in SharePoint Library using rest api. Starting with the creation of Folder class in our"RESTApiHelper" namespace. RESTApiHelper.Folders = function (SiteUrl,ListName) {     this.SiteUrl = SiteUrl;     this.ListName = ListName; Get Folder By Url         this.GetFolderByUrl = function (FolderUrl, doSuccess, doError) {         jQuery.ajax({             url: SiteUrl + "/_api/web/getfolderbyserverrelativeurl('" + FolderUrl + "')",             type: "GET",             headers: {                 "accept": "application/json;odata=verbose"       ...

CRUD operation on Users using REST

In the previous post we have seen CRUD operation on SharePoint Folders. In this post we are going to discuss about the operations on users in SharePoint Library using rest api. Starting with the creation of Users class in our"RESTApiHelper" namespace. RESTApiHelper.Users = function (SiteUrl) {     this.SiteUrl = SiteUrl; Get all users in site     this.GetAllUsers = function (doSuccess, doError) {         jQuery.ajax({             url: this.SiteUrl + "/_api/web/SiteUsers",             method: "GET",             headers: {                 "accept": "application/json; odata=verbose"             },   ...