I have tried learning rest using the basic examples.But I could not get any other rest example samples other than the CRUD operations on lists. Can anyone provide me the suggestions where i can get the rest api examples other than crud operations on lists
-
1What other operations besides Create, Read, Update and Delete would you want to do on a List?– Danny '365CSI' EngelmanCommented Nov 18, 2016 at 10:18
-
While searching for rest api examples am getting the crud operations on lists only.Other than those anywhere can i get rest api examples– user61887Commented Nov 18, 2016 at 10:22
-
1But WHAT other operations do you want? CRUD are all the operations you can do on a List: msdn.microsoft.com/en-us/library/office/jj164022.aspx– Danny '365CSI' EngelmanCommented Nov 18, 2016 at 10:26
-
1Use can use REST Search API also to search across site collections n all..You can create web, get web properties, etc. Is this what you are expecting?– AmitCommented Nov 18, 2016 at 10:31
-
A basic google search should reveal all the different things you can do with REST. Anything advanced, such as managing user permissions, you need to specify.– wjervisCommented Nov 18, 2016 at 12:16
2 Answers
This is the best place to start: REST API reference and samples. These pages contain documentation and samples that go far beyond performing CRUD operations on lists.
I also have a course in the Pluralsight library entitled SharePoint 2013 Development: Client Object Model and REST API. This course covers how to work with documents, managed metadata, user permissions, search, and more. You can get a free trial subscription to check out the course if you are not already a subscriber.
I put together a "SharePoint REST Tester" to help learn and test the SharePoint REST APIs on my own site without writing testing code. While in no way complete, it does have over 80 examples or REST calls. After testing a call, it can display the returned data, an example of a JQuery AJAX call and steps to duplicate the call in a SharePoint Designer 2013 workflow.
The project has examples for Search, CAML Queryies, List Items/Documents, Lists/Libraries, Folders, Recycle Bins, Site Collections, Webs, User Profiles, Permissions, and even a few SP 2010 API examples.
The project is here: https://github.com/microsmith/SharePointRESTtester
The blog article for it is here: http://techtrainingnotes.blogspot.com/2017/04/a-sharepoint-rest-api-tester-with-ajax.html
And as a note to self... I need to update the github files as I have about 10-20 more examples to add.