Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

This seems like a basic question but I have been going around in circles.

At this URL, our customer has a series of PDFs that I want to access via REST:

https://site/Forms/_layouts/15/start.aspx#/Shared Documents/Forms/AllItems.aspx

I am trying to understand the equivalent REST path to obtain the list of documents that live here. I was trying this:

https://site/Forms/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents/Forms')/Files

But while I am returned a list of links, they aren't the files.

Also, if I target a specific file, I am told 'Specified value is not supported for the serverRelativeUrl parameter':

https://site/Forms/_api/web/GetFileByServerRelativeUrl('Shared%20Documents/Forms/file.pdf')
share|improve this question

1 Answer 1

You can find details of the REST API here http://msdn.microsoft.com/en-us/library/ff521587(v=office.14).aspx

If Forms is your sub-site then you will need something like:

https://site/Forms/_vti_bin/ListData.svc/Shared%20Documents
share|improve this answer
    
And here for 2013: msdn.microsoft.com/en-us/library/fp142385.aspx –  Robert Lindgren Jul 16 '13 at 8:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.