title: Cannot get FileLeafRef property in SharePoint Rest API
body: <p>Hi we are trying to retrieve the link URL of page in Site Pages using REST API the problem is that we cannot find the Name FileLeafRef property value.FileLeafReaf = null.</p>
  
  <p><a href="https://i.stack.imgur.com/OvFkE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OvFkE.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7yPmo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7yPmo.png" alt="enter image description here"></a></p>
  
  <pre><code>function fn_getListItems(webUrl,listTitle, queryText) 
  {
      var viewXml = '&lt;View&gt;&lt;Query&gt;' + queryText + '&lt;/Query&gt;&lt;/View&gt;';
      var url = webUrl + "/_api/web/lists/getbytitle('" + listTitle + "')/getitems"; 
      var queryPayload = {  
                 'query' : {
                        '__metadata': { 'type': 'SP.CamlQuery' }, 
                        'ViewXml' : viewXml  
                 }
      };
      return fn_executeJson(url,"POST",null,queryPayload);
  }
  
  
  function fn_getListViewItems(webUrl,listTitle,viewTitle)
  {
       var url = webUrl + "/_api/web/lists/getByTitle('" + listTitle + "')/Views/getbytitle('" + viewTitle + "')/ViewQuery";
       return fn_executeJson(url).then(
           function(data){         
               var viewQuery = data.d.ViewQuery;
               return fn_getListItems(webUrl,listTitle,viewQuery); 
           });
  }
  
  function fn_executeJson(url,method,headers,payload) 
  {
      method = method || 'GET';
      headers = headers || {};
      headers["Accept"] = "application/json;odata=verbose";
      if(method == "POST") {
          headers["X-RequestDigest"] = $("#__REQUESTDIGEST").val();
      }      
      var ajaxOptions = 
      {       
         url: url,   
         type: method,  
         contentType: "application/json;odata=verbose",
         headers: headers
      };
      if (typeof payload != 'undefined') {
        ajaxOptions.data = JSON.stringify(payload);
      }  
      return $.ajax(ajaxOptions);
  }
  </code></pre>
  
  <p>Thanks.</p>