Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get to the odata service of the list in SharePoint 2010

If my list resides here:

 http://sharepoint2010m/Lists/VideoPlayerData/AllItems.aspx

How do I get actual items through the o-data service?

like image 949
dexter Avatar asked Apr 10 '12 18:04

dexter


1 Answers

Your REST endpoint would be: http://sharepoint2010m/_vti_bin/listdata.svc/VideoPlayerData

In your example, your List lives in the root. However, if you need to get to a List that lives deeper down, you tack on the _vti_bin after the last site in your URL.

For example, to access a List at: http://sharepoint2010m/MySite/MySubSite/Lists/MyList/AllItems.aspx,

you'd ask for:

http://sharepoint2010m/MySite/MySubSite/_vti_bin/listdata.svc/MyList

Microsoft also has a helpful article called Using the REST Interface you might want to check out.

like image 65
CBono Avatar answered Sep 27 '22 21:09

CBono