Типы контента и поля
Схемы
Типы контента описываются схемами (имя, заголовок, поля). API: GET/POST/PUT/DELETE /schemas.
Типы полей
| Тип | Описание |
|---|---|
| string, text, number, boolean | Строка, текст, число, да/нет |
| date, datetime | Дата и время |
| richText | Rich text (TipTap) |
| image, file | Медиа |
| reference | Ссылка на документ (referenceSchema) |
| array, object | Массив (of), объект (fields) |
| slug, url, email, color | Слаг, URL, email, цвет |
Свойства полей
name, type, title, description, required, localized, hidden, readOnly, options, validation. У reference — referenceSchema; у array — of; у object — fields.