Sharepoint - How can I get the URL of a Pages List with REST API?
Have you tried getting the column 'FileRef'?
If not can you construct the URL using the Name?
FileRef
field in $select
query option will return page url.
For example, the query:
https://fabrikam.sharepoint.com/_api/web/Lists/getbytitle('Pages')/items?$top=1&$select=Id,Title,FileRef
will return:
<?xml version="1.0" encoding="utf-8"?>
<feed xml:base="https://fabrikam.sharepoint.com/_api/"
xmlns="http://www.w3.org/2005/Atom"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:georss="http://www.georss.org/georss"
xmlns:gml="http://www.opengis.net/gml">
<id>07244208-09fa-4014-bd1f-785a73b8d4a1</id>
<title />
<updated>2014-01-23T21:14:58Z</updated>
<entry m:etag=""5"">
<id>78183075-e864-4e76-8efb-38bf6e2190f9</id>
<category term="SP.Data.PagesItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" href="Web/Lists(guid'a976fb47-81fa-47ae-a487-7d6d656a54ce')/Items(1)" />
<title />
<updated>2014-01-23T21:14:58Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:Id m:type="Edm.Int32">1</d:Id>
<d:Title>Home</d:Title>
<d:ID m:type="Edm.Int32">1</d:ID>
<d:FileRef>/Pages/default.aspx</d:FileRef>
</m:properties>
</content>
</entry>
<link rel="next" href="https://fabrikam.sharepoint.com/_api/web/Lists/getbytitle('Pages')/items?%24skiptoken=Paged%3dTRUE%26p_SortBehavior%3d0%26p_ID%3d1&%24top=1&%24select=Id%2cTitle%2cFileRef" />
</feed>