Prism Server sends requests to the Origin for each site URL depending on the chosen integration method to get Prism Data Structure in response.
Prism Server can send requests for all pages types on your site, such as Index, Sections, Articles etc.
Publisher should choose one of the following integration methods.
Prism Server sends POST requests to a Content API endpoint (ex: https://yoursite.com/prism-data/
) with a POST header:
Content-Url: <URL>
?url=
paramPrism Server sends GET requests to a Content API endpoint with the ?url=<%URL%>
param.
Example:
https://yoursite.com/prism-data/?url=https://yoursite.com/page/url/
?prism_data=1
paramPrism Server sends GET requests to page URLs with the GET param ?prism_data=1
.
Example:
https://yoursite.com/page/url/?prism_data=1
Regardless of the chosen method of sending requests, the Origin must provide a 200
response. The response should contain valid JSON markup.
In the JSON markup, the publisher can declare any supported content types and configure their appearance, position on the page, etc.
To should the original page instead of the Prism version, the 200
response should contain decline-parameter in the response body:
[{
"PrismDecline": true
}]