Last active
August 19, 2019 20:56
-
-
Save jamesvidler/43b8d16f9a9651f6963b379ce55dc242 to your computer and use it in GitHub Desktop.
Get a page using the Content Fetch API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://046a1a87-api.agilitycms.cloud/fetch/en-us/page/2 | |
--header "APIKey: defaultlive.2b7f3a91559d794bedb688358be5e13af2b1e3ae8cd39e8ed2433bbef5d8d6ac" | |
{ | |
"pageID": 2, | |
"name": "home", | |
"path": null, | |
"title": "Home", | |
"menuText": "New Home Text", | |
"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-08-01T14:26:01.177", | |
"versionID": 48 | |
}, | |
"zones": { | |
"MainContentZone": [ | |
{ | |
"module": "Jumbotron", | |
"item": { | |
"contentID": 12, | |
"properties": { | |
"state": 2, | |
"modified": "2019-08-01T14:26:02.553", | |
"versionID": 135, | |
"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-08-01T14:26:03.603", | |
"versionID": 136, | |
"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-08-01T14:26:04.837", | |
"versionID": 137, | |
"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