Skip to main content
Skip table of contents

Base schemas

Some sample schemas, usable as baseline for real Headless CMS website implementation.

These schemas map standard censhare data structures to JSON documents, providing convenient starting point of Headless CMS application.
They are not supposed to be used directly in this form and they are definitely not the only possible mapping.

Real schema used in production should always contain proper access control defined ("cs:roles.required" or "cs:permissions").

Image

image-schema.json

Article and Rubric

These mappings provide basic structure of website with articles grouped in sections (rubrics).
Both articles and rubrics have structured text (richtext) in several languages.

Note that when creating these schemas by single-schema endpoint, order is important (content must be created first).
Recommended way is to create all of them at once by POST /schema/ endpoint.

User

  • user-schema.json
    • This mapping contains only personal information about user, no authorization data.
    • Note: allowing frontend code to access this schema does not compromise security of the website, but it might violate GDPR and/or other regulations.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.