title: Access files in Sharepoint 2010 using REST API
body: <p>I know very little about Sharepoint. We have an SP site:
  <a href="http://host/sites/project/subproject/LIBRARY%20Name/Forms/AllItems.aspx" rel="nofollow noreferrer">http://host/sites/project/subproject/LIBRARY%20Name/Forms/AllItems.aspx</a></p>
  
  <p>Navigating to this in the browser shows me a list of files.
  I want to use SPs REST API to programatically access these files.</p>
  
  <p>I've learned that the REST API is accessed through the <a href="http://host/_vti_bin/ListData.svc" rel="nofollow noreferrer">http://host/_vti_bin/ListData.svc</a> URL. In the browser this returns XML that contains entries for Services, Documents, Images, etc. </p>
  
  <p>To access files i tried the following URLs:</p>
  
  <pre><code>   http://host/_vti_bin/ListData.svc/Documents
     http://host/_vti_bin/ListData.svc/Documents('LIBRARY%20Name')
     http://host/_vti_bin/ListData.svc/Documents?$select=NAME('LIBRARY%20Name')
  </code></pre>
  
  <p>, and many other variations.</p>
  
  <p>My question is, given the URL of our site, what would the REST API service URL look like? </p>
  
  <p>Thanks</p>