Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Content

Francis Pion edited this page Jan 24, 2025 · 17 revisions

ℹ️ Represents content managed by the system, such as web pages, products, people, etc.

⚙️ Properties

Name Type Cardinality Description
ContentType ContentType 1..1 The ContentType associated to this content.
Invariant ContentLocale 1..1 The invariant content data.
Locales Map<Language, ContentLocale> 0..* The translated content data.

ContentLocale

Name Type Cardinality Description
UniqueName String 1..1 🗝️ The unique name of the content locale, unique within the content type and language.
DisplayName String 0..1 The display name of the content locale.
Description String 0..1 A textual description of the content locale.
FieldValues Map<Guid, String> 0..* The field values of the content locale.

❔ Questions

🚧 Could we provide an endpoint to export dynamic content types?

🚧 Could we provide a dynamic object containing field values within content locales?

✅ Should we provide a query to read contents from its unique name?

Yes, see table below.

🌐 Endpoints

Status Method URL Description
0% DELETE /api/contents/{contentId}?language={languageId} Deletes contents.
75% GET /api/contents Searches contents.
75% GET /api/contents/types/{contentTypeId}/unique-name:{uniqueName}?language={languageId} Reads contents by unique name.
75% GET /api/contents/{contentId} Reads contents by ID.
75% PATCH /api/contents/{contentId}/publish/all Publishes contents (invariant & all locales).
75% PATCH /api/contents/{contentId}/publish?language={languageId} Publishes contents.
75% PATCH /api/contents/{contentId}/unpublish/all Publishes contents (invariant & all locales).
75% PATCH /api/contents/{contentId}/unpublish?language={languageId} Publishes contents.
75% PATCH /api/contents/{contentId}?language={languageId} Updates contents.
75% POST /api/contents?language={languageId} Creates new contents.
75% PUT /api/contents/{contentId}?language={languageId} Creates or replaces contents.

🚧 Add publication endpoints (read/search published contents).

Clone this wiki locally