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
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.
- article_content-schema.json and article-schema.json
- rubric_content-schema.json and rubric-schema.json
- image-schema.json (the same as above)
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.