Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "node--node_example":{
- "title":"node:node_example Schema",
- "description":"Describes the payload for 'node' entities of the 'node_example' bundle.",
- "type":"object",
- "required":[
- "data"
- ],
- "properties":{
- "data":{
- "description":"\"Resource objects\" appear in a JSON:API document to represent resources.",
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"type",
- "description":"Тип ресурса",
- "enum":[
- "node--node_example"
- ]
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- },
- "attributes":{
- "description":"Entity attributes",
- "type":"object",
- "additionalProperties":false,
- "properties":{
- "drupal_internal__nid":{
- "type":"integer",
- "title":"ID"
- },
- "drupal_internal__vid":{
- "type":"integer",
- "title":"ID редакции"
- },
- "langcode":{
- "type":"object",
- "properties":{
- "value":{
- "type":"string",
- "title":"Код языка"
- },
- "language":{
- "type":"language_reference",
- "title":"Объект языка",
- "description":"Язык ссылки"
- }
- },
- "required":[
- "value"
- ],
- "title":"Язык"
- },
- "status":{
- "type":"boolean",
- "title":"Опубликовано",
- "default":true
- },
- "title":{
- "type":"string",
- "title":"Заголовок",
- "maxLength":255
- },
- "created":{
- "type":"number",
- "title":"Время создания",
- "format":"utc-millisec",
- "description":"Время создания материала."
- },
- "changed":{
- "type":"number",
- "title":"Изменение",
- "format":"utc-millisec",
- "description":"Время последнего редактирования материала."
- },
- "promote":{
- "type":"boolean",
- "title":"Помещено на главную страницу",
- "default":true
- },
- "sticky":{
- "type":"boolean",
- "title":"Закреплять вверху списков",
- "default":false
- },
- "default_langcode":{
- "type":"boolean",
- "title":"Перевод по умолчанию",
- "description":"Флаг, указывающий, является ли этот перевод - переводом по умолчанию.",
- "default":true
- },
- "metatag":{
- "type":"object",
- "title":"Мета-теги",
- "description":"Мета-теги для сущности."
- },
- "metatag_normalized":{
- "type":"array",
- "title":"Metatags normalized",
- "description":"Мета-теги для сущности.",
- "items":{
- "type":"object",
- "properties":{
- "tag":{
- "type":"string",
- "title":"Тег"
- },
- "attributes":{
- "type":"any",
- "title":"Название"
- }
- },
- "required":[
- "tag",
- "attributes"
- ]
- },
- "minItems":1
- },
- "path":{
- "type":"object",
- "properties":{
- "alias":{
- "type":"string",
- "title":"Синоним пути"
- },
- "pid":{
- "type":"integer",
- "title":"ID пути"
- },
- "langcode":{
- "type":"string",
- "title":"Language Code"
- },
- "pathauto":{
- "type":"integer",
- "title":"Pathauto state",
- "description":"Whether an automated alias should be created or not."
- }
- },
- "required":[
- "pathauto"
- ],
- "title":"Синоним URL"
- },
- "body":{
- "type":"object",
- "properties":{
- "value":{
- "type":"string",
- "title":"Текст"
- },
- "format":{
- "type":"string",
- "title":"Текстовый формат"
- },
- "summary":{
- "type":"string",
- "title":"Сводка"
- }
- },
- "required":[
- "value"
- ],
- "title":"Текст (форматированный, длинный, с резюме)"
- },
- "boolean":{
- "type":"boolean",
- "title":"Boolean",
- "default":false
- },
- "integer":{
- "type":"integer",
- "title":"Число целое"
- },
- "link":{
- "type":"object",
- "properties":{
- "uri":{
- "type":"uri",
- "title":"URI"
- },
- "title":{
- "type":"string",
- "title":"Текст ссылки"
- }
- },
- "title":"Ссылка в веб",
- "description":"Текст ссылки может быть отключен"
- },
- "simple_text":{
- "type":"string",
- "title":"Текст простой",
- "maxLength":255
- },
- "subtitle":{
- "type":"object",
- "properties":{
- "value":{
- "type":"string",
- "title":"Текст",
- "maxLength":255
- },
- "format":{
- "type":"string",
- "title":"Текстовый формат"
- }
- },
- "required":[
- "value"
- ],
- "title":"Текст форматированный, без анонса"
- },
- "telephone":{
- "type":"string",
- "title":"Номер телефона"
- }
- },
- "required":[
- "title",
- "metatag",
- "metatag_normalized",
- "path"
- ]
- },
- "relationships":{
- "description":"Entity relationships",
- "type":"object",
- "additionalProperties":false,
- "properties":{
- "node_type":{
- "type":"object",
- "properties":{
- "data":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource",
- "enum":[
- "node_type--node_type"
- ]
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- }
- }
- }
- },
- "title":"Тип материала"
- },
- "uid":{
- "type":"object",
- "properties":{
- "data":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource",
- "enum":[
- "user--user"
- ]
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- }
- }
- }
- },
- "title":"Автор"
- },
- "file":{
- "type":"object",
- "properties":{
- "data":{
- "type":"array",
- "items":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource",
- "enum":[
- "file--file"
- ]
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- }
- }
- }
- }
- },
- "title":"Обычный файл (вложение)"
- },
- "image":{
- "type":"object",
- "properties":{
- "data":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource",
- "enum":[
- "file--file"
- ]
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- }
- }
- }
- },
- "title":"Изображение"
- },
- "sections":{
- "type":"object",
- "properties":{
- "data":{
- "type":"array",
- "items":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource"
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- }
- }
- }
- }
- },
- "title":"Секции (Ссылка на сущность Параграф)"
- },
- "tags":{
- "type":"object",
- "properties":{
- "data":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource",
- "enum":[
- "taxonomy_term--tags"
- ]
- },
- "id":{
- "type":"string",
- "title":"Resource ID",
- "format":"uuid",
- "maxLength":128
- }
- }
- }
- },
- "title":"Теги (ссылка на таксономию)"
- }
- },
- "required":[
- ]
- },
- "links":{
- "type":"object",
- "additionalProperties":{
- "description":"A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
- "type":"object",
- "required":[
- "href"
- ],
- "properties":{
- "href":{
- "description":"A string containing the link's URL . ",
- "type":"string",
- "format":"uri - reference"
- },
- "meta":{
- "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
- "type":"object",
- "additionalProperties":true
- }
- }
- }
- },
- "meta":{
- "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
- "type":"object",
- "additionalProperties":true
- }
- },
- "additionalProperties":false
- },
- "meta":{
- "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
- "type":"object",
- "additionalProperties":true
- },
- "links":{
- "type":"object",
- "additionalProperties":{
- "description":"A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
- "type":"object",
- "required":[
- "href"
- ],
- "properties":{
- "href":{
- "description":"A string containing the link's URL . ",
- "type":"string",
- "format":"uri - reference"
- },
- "meta":{
- "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
- "type":"object",
- "additionalProperties":true
- }
- }
- }
- },
- "jsonapi":{
- "description":"An object describing the server's implementation",
- "type":"object",
- "properties":{
- "version":{
- "type":"string"
- },
- "meta":{
- "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
- "type":"object",
- "additionalProperties":true
- }
- },
- "additionalProperties":false
- }
- },
- "additionalProperties":true
- }
Add Comment
Please, Sign In to add comment