Sharepoint Rest Api
Working with the SP Rest Api i found some basics that are here to remember.
get by title
var u = "/sites/newportal/_api/Web/lists/getbytitle('Site Pages')/items"
select person field
u += "?$select=Title,Assigned_x0020_To0/Name,FileRef,FileDirRef" +
var u = "/sites/newportal/_api/Web/GetFolderByServerRelativePath" +
but to really get a person data by folder in site pages i had to use search
var u = "/_api/search/query?" +