Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "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":"Язык"
- },
- "revision_timestamp":{
- "type":"number",
- "title":"Время создания редакции",
- "format":"utc-millisec",
- "description":"Время создания текущей редакции"
- },
- "revision_log":{
- "type":"string",
- "title":"Сообщение в журнал о редакции",
- "description":"Кратко опишите внесённые вами изменения.",
- "default":""
- },
- "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
- },
- "revision_default":{
- "type":"boolean",
- "title":"Редакция по умолчанию",
- "description":"Флаг показывающий, была ли ревизия текущей, когда она была сохранена."
- },
- "revision_translation_affected":{
- "type":"boolean",
- "title":"Редакция, на которую повлиял перевод",
- "description":"Указывает, что последние редактирование перевода принадлежит текущей редакции."
- },
- "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":"Body"
- }
- },
- "required":[
- "title",
- "revision_translation_affected",
- "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":"Тип материала"
- },
- "revision_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":"Пользователь ревизии"
- },
- "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":"Автор"
- },
- "menu_link":{
- "type":"object",
- "properties":{
- "data":{
- "type":"object",
- "required":[
- "type",
- "id"
- ],
- "properties":{
- "type":{
- "type":"string",
- "title":"Referenced resource",
- "enum":[
- "menu_link_content--menu_link_content"
- ]
- },
- "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