Get Content Page Preview - PurposeOpen/Platform GitHub Wiki

GET /api/:locale/movements/:movement_id/content_pages/:id/preview(.:format)

Gets the preview of the Content Page with the requested ID

Parameters
movement_id Mandatory Movement Id for which we want to request the Content Page Preview
localeMandatory Requested Content Page localized version
id Mandatory Requested Content Page Id Preview

Response

Status Code

200 if Successful 404 Not Found

Content

Field Description
Id Content Page Identifier
Name Content Page Name
Type Content Page Type (ContentPage)
Headers Content Modules Field'si.e.: alternate_key, content, created_at, etc. See Content Module
Main Content Modules Field'si.e.: alternate_key, content, created_at, etc. See Content Module
SideBar Content Modules Field'si.e.: alternate_key, content, created_at, etc. See Content Module

Example Request

GET /api/en/movements/test-movement/content_pages/35729/preview.json

Example Response

200 (OK) Content-Type: application/json

{"id":35729,
"name":"API testing",
"type":"ContentPage",
"header_content_modules":[{"alternate_key":null,
"content":"This is the HEADER content",
"created_at":"2013-03-25T19:08:50Z",
"id":328733,
"language_id":1,
"live_content_module_id":328682,
"options":{},
"public_activity_stream_template":null,
"title":null,
"updated_at":"2013-03-25T19:08:50Z",
"type":"HtmlModule"}],
"main_content_modules":[{"alternate_key":null,
"content":"This is the MAIN content",
"created_at":"2013-03-25T19:08:51Z",
"id":328734,
"language_id":1,
"live_content_module_id":328686,
"options":{},
"public_activity_stream_template":null,
"title":null,
"updated_at":"2013-03-25T19:08:51Z",
"type":"HtmlModule"}],
"sidebar_content_modules":[{"alternate_key":null,
"content":"This is the SIDEBAR content",
"created_at":"2013-03-25T19:08:51Z",
"id":328735,
"language_id":1,
"live_content_module_id":328690,
"options":{},
"public_activity_stream_template":null,
"title":null,
"updated_at":"2013-03-25T19:08:51Z",
"type":"HtmlModule"}]
}

back