Category Archives: REST

Uses of SharePoint 2010 REST Service

REST Services (SP Data Services) to retrieve date from lists is one of the key developer friendly addition in  SharePoint 2010. By now there are quite a few articles about basics of using these REST services. However I thought of posting this article with some of the basics and particular uses of this new feature to help everybody with my experiences.

One thing to note here is that these services are built on top of Rest concepts. That is knowing great constraints of web and sticking to very basics of Client/Server web architecture. So it is important to be mindful about the REST’s behaviors, without boxing to old fashioned web services or WCF services.

First thing you have to do is check if your server has “ADO.NET Data Services 1.5” as it provides infrastructure to SharePoint to provide Data Services. The easiest way to check this is to hit the URL http://<<server>>/_vti_bin/listdata.svc, which is the endpoint for the data services. In case if you get 404, it is most likely your server doesn’t have the ADO.NET Data Services 1.5 installed.

When you hit the above said url with your browser you will get a well formed XML document with list of  Lists in the root site collection. Why I’m saying it is root site collection is because that we hit the data service for root site collection, in case you want to make use of  a data service of site called “News”, you can use ttp://<<server>>/News/_vti_bin/listdata.svc .

Advertisements