Skip to content

Instantly share code, notes, and snippets.

@chrisobriensp
Created November 24, 2016 11:47
Show Gist options
  • Select an option

  • Save chrisobriensp/905b75c2d164ae423be158fdef6edfd4 to your computer and use it in GitHub Desktop.

Select an option

Save chrisobriensp/905b75c2d164ae423be158fdef6edfd4 to your computer and use it in GitHub Desktop.
Shows a sample response from the [list]/_api/sitepages/pages/feed endpoint used by news headlines/news list controls in modern SharePoint sites.
{
"@odata.context": "https://chrisobriensp.sharepoint.com/sites/team1/_api/$metadata#SitePageMetadatas",
"value": [{
"@odata.editLink": "SP.Publishing.SitePageMetadata52f99f8b-a261-4372-a468-884f1933e8e4",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadata52f99f8b-a261-4372-a468-884f1933e8e4",
"@odata.type": "#SP.Publishing.SitePageMetadata",
"AbsoluteUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SitePages/Facebook details plans to combat.aspx",
"BannerImageUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/Facebook-details-plans-to-combat/54483-Facebook.jpg, https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/Facebook-details-plans-to-combat/54483-Facebook.jpg",
"CreatedBy": {
"@odata.editLink": "SP.Publishing.SitePageMetadata52f99f8b-a261-4372-a468-884f1933e8e4/CreatedBy",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadata52f99f8b-a261-4372-a468-884f1933e8e4/CreatedBy",
"@odata.type": "#SP.Publishing.UserInfo",
"AccountName": "i:0#.f|membership|[accountNameHere]",
"Acronym": "CO",
"Color": "#005e50",
"Name": "Chris O'Brien"
},
"[email protected]": "SP.Publishing.SitePageMetadata52f99f8b-a261-4372-a468-884f1933e8e4/CreatedBy",
"Description": "Facebook founder Mark Zuckerberg has outlined plans for how he hopes to combat fake news on the site. Facebook became mired in controversy after some users complained fake news changed the outcome of the US election. Mr Zuckerberg posted details of s",
"DoesUserHaveEditPermission": true,
"FileName": "Facebook details plans to combat.aspx",
"FirstPublished": "2016-11-20T08:47:42Z",
"FirstPublishedRelativeTime": "1|0|2",
"Id": 17,
"IsPageCheckedOutToCurrentUser": false,
"IsWebWelcomePage": false,
"Modified": "2016-11-20T08:47:42Z",
"PageLayoutType": "Article",
"PromotedState": 2,
"Title": "Facebook details plans to combat fake news",
"UniqueId": "81a01faf-5873-4300-8273-db1070f3753a",
"Url": "SitePages/Facebook details plans to combat.aspx",
"Version": "1.0"
}, {
"@odata.editLink": "SP.Publishing.SitePageMetadata58033a84-8d05-42ef-b481-661e2c88452c",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadata58033a84-8d05-42ef-b481-661e2c88452c",
"@odata.type": "#SP.Publishing.SitePageMetadata",
"AbsoluteUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SitePages/US retailers perform poorly during holidays(1).aspx",
"BannerImageUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/US-retailers-perform-poorly-during-holidays/45115-Gap.jpg, https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/US-retailers-perform-poorly-during-holidays/45115-Gap.jpg",
"CreatedBy": {
"@odata.editLink": "SP.Publishing.SitePageMetadata58033a84-8d05-42ef-b481-661e2c88452c/CreatedBy",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadata58033a84-8d05-42ef-b481-661e2c88452c/CreatedBy",
"@odata.type": "#SP.Publishing.UserInfo",
"AccountName": "i:0#.f|membership|[accountNameHere]",
"Acronym": "CO",
"Color": "#005e50",
"Name": "Chris O'Brien"
},
"[email protected]": "SP.Publishing.SitePageMetadata58033a84-8d05-42ef-b481-661e2c88452c/CreatedBy",
"Description": "Shares in two of America's largest clothing retailers plunged on Friday following disappointing third quarter sales and a downbeat forecast for the crucial holiday shopping season. Gap shares sank by 13.1% after a seventh consecutive quarter of falli",
"DoesUserHaveEditPermission": true,
"FileName": "US retailers perform poorly during holidays(1).aspx",
"FirstPublished": "2016-11-20T08:43:26Z",
"FirstPublishedRelativeTime": "1|0|3|5",
"Id": 16,
"IsPageCheckedOutToCurrentUser": false,
"IsWebWelcomePage": false,
"Modified": "2016-11-20T08:43:27Z",
"PageLayoutType": "Article",
"PromotedState": 2,
"Title": "US retailers perform poorly during holidays",
"UniqueId": "c21669a5-3b4e-4c2f-bfe4-44708b2bdf88",
"Url": "SitePages/US retailers perform poorly during holidays(1).aspx",
"Version": "1.0"
}, {
"@odata.editLink": "SP.Publishing.SitePageMetadata32c623cc-5011-4adb-a587-3f58afa4a5a8",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadata32c623cc-5011-4adb-a587-3f58afa4a5a8",
"@odata.type": "#SP.Publishing.SitePageMetadata",
"AbsoluteUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SitePages/South Korea protests demanding president resign continue.aspx",
"BannerImageUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/South-Korea-protests-demanding-president-resign-continue/26738-Korea.jpg, https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/South-Korea-protests-demanding-president-resign-continue/26738-Korea.jpg",
"CreatedBy": {
"@odata.editLink": "SP.Publishing.SitePageMetadata32c623cc-5011-4adb-a587-3f58afa4a5a8/CreatedBy",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadata32c623cc-5011-4adb-a587-3f58afa4a5a8/CreatedBy",
"@odata.type": "#SP.Publishing.UserInfo",
"AccountName": "i:0#.f|membership|[accountNameHere]",
"Acronym": "CO",
"Color": "#005e50",
"Name": "Chris O'Brien"
},
"[email protected]": "SP.Publishing.SitePageMetadata32c623cc-5011-4adb-a587-3f58afa4a5a8/CreatedBy",
"Description": "Tens of thousands of protesters have gathered in Seoul for the fourth week in a row as they continue to demand President Park Geun-hye stand down. The protesters chanted \"Park Geun-Hye resign\" as they waved candles and placards above their heads. Ms",
"DoesUserHaveEditPermission": true,
"FileName": "South Korea protests demanding president resign continue.aspx",
"FirstPublished": "2016-11-19T18:58:02Z",
"FirstPublishedRelativeTime": "1|0|5|6:58 PM",
"Id": 14,
"IsPageCheckedOutToCurrentUser": false,
"IsWebWelcomePage": false,
"Modified": "2016-11-19T18:58:02Z",
"PageLayoutType": "Article",
"PromotedState": 2,
"Title": "South Korea protests demanding president resign continue",
"UniqueId": "5ab4f143-34e0-4396-b047-dfaf2cb9fcd6",
"Url": "SitePages/South Korea protests demanding president resign continue.aspx",
"Version": "1.0"
}, {
"@odata.editLink": "SP.Publishing.SitePageMetadatad54dbd77-608e-4a64-b0fa-ce5d87bf73f7",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadatad54dbd77-608e-4a64-b0fa-ce5d87bf73f7",
"@odata.type": "#SP.Publishing.SitePageMetadata",
"AbsoluteUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SitePages/Financial upheaval ahead for families.aspx",
"BannerImageUrl": "https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/Financial-upheaval-ahead-for-families/41662-Money.jpg, https://chrisobriensp.sharepoint.com/sites/team1/SiteAssets/SitePages/Financial-upheaval-ahead-for-families/41662-Money.jpg",
"CreatedBy": {
"@odata.editLink": "SP.Publishing.SitePageMetadatad54dbd77-608e-4a64-b0fa-ce5d87bf73f7/CreatedBy",
"@odata.id": "https://chrisobriensp.sharepoint.com/sites/team1/_api/SP.Publishing.SitePageMetadatad54dbd77-608e-4a64-b0fa-ce5d87bf73f7/CreatedBy",
"@odata.type": "#SP.Publishing.UserInfo",
"AccountName": "i:0#.f|membership|[accountNameHere]",
"Acronym": "CO",
"Color": "#005e50",
"Name": "Chris O'Brien"
},
"[email protected]": "SP.Publishing.SitePageMetadatad54dbd77-608e-4a64-b0fa-ce5d87bf73f7/CreatedBy",
"Description": "Some experts are predicting a \"quiet\" Autumn Statement - but significant upheaval for family finances is already coming down the line. The freeze on major benefits, which continues until 2020, may bite harder as inflation is set to accelerate - drivi",
"DoesUserHaveEditPermission": true,
"FileName": "Financial upheaval ahead for families.aspx",
"FirstPublished": "2016-11-19T18:53:11Z",
"FirstPublishedRelativeTime": "1|0|5|6:53 PM",
"Id": 13,
"IsPageCheckedOutToCurrentUser": false,
"IsWebWelcomePage": false,
"Modified": "2016-11-19T18:53:12Z",
"PageLayoutType": "Article",
"PromotedState": 2,
"Title": "Financial upheaval ahead for families",
"UniqueId": "4984d68d-6c54-48f9-8c54-50df71c4f342",
"Url": "SitePages/Financial upheaval ahead for families.aspx",
"Version": "1.0"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment