.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Starting with REST

Posted By:Jean Paul       Posted Date: April 30, 2016    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

In this article we can have a start with REST API.
 

REST

SharePoint 2013 introduced REST API which allows alternative & easier usage than CSOM/JSOM. The simplicity of REST is that we can use browser address bar to invoke the API.

Testing REST

Test the following URL in your browser.

http://server/_api/web/lists

If you are using Internet Explorer, you will get the following output.

image

Towards the right hand side you can see there are 19 lists being returned. To view the XML output, you can choose the View Source option.

image

Please note that the result is returned in XML format. In programming scenarios, we can use XML or JSON notations to get the results & parse them.

References

https://msdn.microsoft.com/en-us/library/office/fp142380.aspx

https://msdn.microsoft.com/en-us/library/office/dn531433.aspx

Summary

In this post we have explored how to start with REST API using a browser.


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend