Skip to content

Instantly share code, notes, and snippets.

@jamesvidler
Created July 31, 2019 16:54
Show Gist options
  • Save jamesvidler/e1ca45ca9a093c2707319166d080b7ef to your computer and use it in GitHub Desktop.
Save jamesvidler/e1ca45ca9a093c2707319166d080b7ef to your computer and use it in GitHub Desktop.
Sample REST API Page Result
{
"pageID": 2,
"name": "home",
"path": null,
"title": "Home",
"menuText": "Home",
"pageType": "static",
"templateName": "One Column Template",
"redirectUrl": "",
"securePage": false,
"excludeFromOutputCache": false,
"visible": { "menu": true, "sitemap": true },
"seo": {
"metaDescription": "",
"metaKeywords": "",
"metaHTML": "",
"menuVisible": null,
"sitemapVisible": null
},
"scripts": { "excludedFromGlobal": false, "top": null, "bottom": null },
"properties": {
"state": 2,
"modified": "2019-07-18T13:48:27.757",
"versionID": 45
},
"zones": {
"MainContentZone": [
{
"module": "Jumbotron",
"item": {
"contentID": 12,
"properties": {
"state": 2,
"modified": "2019-07-18T13:48:29.163",
"versionID": 128,
"referenceName": "home_jumbotron",
"definitionName": "Jumbotron",
"itemOrder": 0
},
"fields": {
"title": "Blog Post Template ",
"subTitle": "Welcome to Agility!"
}
}
},
{
"module": "RichTextArea",
"item": {
"contentID": 22,
"properties": {
"state": 2,
"modified": "2019-07-18T13:48:30.353",
"versionID": 129,
"referenceName": "home_richtextarea",
"definitionName": "RichTextArea",
"itemOrder": 0
},
"fields": {
"textblob": "<h1>About this Site</h1>\n<p>This is a sample blog that showcases how you can use React and the JS SDK to build a dynamic Single-Page-Application.</p>\n<p><a href=\"https://github.com/agility/agility-create-react-app\" target=\"_blank\" rel=\"noopener\">View the source code</a></p>"
}
}
},
{
"module": "PostsListing",
"item": {
"contentID": 23,
"properties": {
"state": 2,
"modified": "2019-07-18T13:48:31.4",
"versionID": 130,
"referenceName": "home_postslisting",
"definitionName": "PostsListing",
"itemOrder": 0
},
"fields": { "title": "Posts", "posts": { "referencename": "posts" } }
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment