alexd73

Структура поля Текст с форматированием

Oct 3rd, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.89 KB | None | 0 0
  1. {
  2.    "title":"node:node_example Schema",
  3.    "description":"Describes the payload for 'node' entities of the 'node_example' bundle.",
  4.    "type":"object",
  5.    "required":[
  6.       "data"
  7.    ],
  8.    "properties":{
  9.       "data":{
  10.          "description":"\"Resource objects\" appear in a JSON:API document to represent resources.",
  11.          "type":"object",
  12.          "required":[
  13.             "type",
  14.             "id"
  15.          ],
  16.          "properties":{
  17.             "type":{
  18.                "type":"string",
  19.                "title":"type",
  20.                "description":"Тип ресурса",
  21.                "enum":[
  22.                   "node--node_example"
  23.                ]
  24.             },
  25.             "id":{
  26.                "type":"string",
  27.                "title":"Resource ID",
  28.                "format":"uuid",
  29.                "maxLength":128
  30.             },
  31.             "attributes":{
  32.                "description":"Entity attributes",
  33.                "type":"object",
  34.                "additionalProperties":false,
  35.                "properties":{
  36.                   "drupal_internal__nid":{
  37.                      "type":"integer",
  38.                      "title":"ID"
  39.                   },
  40.                   "drupal_internal__vid":{
  41.                      "type":"integer",
  42.                      "title":"ID редакции"
  43.                   },
  44.                   "langcode":{
  45.                      "type":"object",
  46.                      "properties":{
  47.                         "value":{
  48.                            "type":"string",
  49.                            "title":"Код языка"
  50.                         },
  51.                         "language":{
  52.                            "type":"language_reference",
  53.                            "title":"Объект языка",
  54.                            "description":"Язык ссылки"
  55.                         }
  56.                      },
  57.                      "required":[
  58.                         "value"
  59.                      ],
  60.                      "title":"Язык"
  61.                   },
  62.                   "revision_timestamp":{
  63.                      "type":"number",
  64.                      "title":"Время создания редакции",
  65.                      "format":"utc-millisec",
  66.                      "description":"Время создания текущей редакции"
  67.                   },
  68.                   "revision_log":{
  69.                      "type":"string",
  70.                      "title":"Сообщение в журнал о редакции",
  71.                      "description":"Кратко опишите внесённые вами изменения.",
  72.                      "default":""
  73.                   },
  74.                   "status":{
  75.                      "type":"boolean",
  76.                      "title":"Опубликовано",
  77.                      "default":true
  78.                   },
  79.                   "title":{
  80.                      "type":"string",
  81.                      "title":"Заголовок",
  82.                      "maxLength":255
  83.                   },
  84.                   "created":{
  85.                      "type":"number",
  86.                      "title":"Время создания",
  87.                      "format":"utc-millisec",
  88.                      "description":"Время создания материала."
  89.                   },
  90.                   "changed":{
  91.                      "type":"number",
  92.                      "title":"Изменение",
  93.                      "format":"utc-millisec",
  94.                      "description":"Время последнего редактирования материала."
  95.                   },
  96.                   "promote":{
  97.                      "type":"boolean",
  98.                      "title":"Помещено на главную страницу",
  99.                      "default":true
  100.                   },
  101.                   "sticky":{
  102.                      "type":"boolean",
  103.                      "title":"Закреплять вверху списков",
  104.                      "default":false
  105.                   },
  106.                   "default_langcode":{
  107.                      "type":"boolean",
  108.                      "title":"Перевод по умолчанию",
  109.                      "description":"Флаг, указывающий, является ли этот перевод - переводом по умолчанию.",
  110.                      "default":true
  111.                   },
  112.                   "revision_default":{
  113.                      "type":"boolean",
  114.                      "title":"Редакция по умолчанию",
  115.                      "description":"Флаг показывающий, была ли ревизия текущей, когда она была сохранена."
  116.                   },
  117.                   "revision_translation_affected":{
  118.                      "type":"boolean",
  119.                      "title":"Редакция, на которую повлиял перевод",
  120.                      "description":"Указывает, что последние редактирование перевода принадлежит текущей редакции."
  121.                   },
  122.                   "metatag":{
  123.                      "type":"object",
  124.                      "title":"Мета-теги",
  125.                      "description":"Мета-теги для сущности."
  126.                   },
  127.                   "metatag_normalized":{
  128.                      "type":"array",
  129.                      "title":"Metatags normalized",
  130.                      "description":"Мета-теги для сущности.",
  131.                      "items":{
  132.                         "type":"object",
  133.                         "properties":{
  134.                            "tag":{
  135.                               "type":"string",
  136.                               "title":"Тег"
  137.                            },
  138.                            "attributes":{
  139.                               "type":"any",
  140.                               "title":"Название"
  141.                            }
  142.                         },
  143.                         "required":[
  144.                            "tag",
  145.                            "attributes"
  146.                         ]
  147.                      },
  148.                      "minItems":1
  149.                   },
  150.                   "path":{
  151.                      "type":"object",
  152.                      "properties":{
  153.                         "alias":{
  154.                            "type":"string",
  155.                            "title":"Синоним пути"
  156.                         },
  157.                         "pid":{
  158.                            "type":"integer",
  159.                            "title":"ID пути"
  160.                         },
  161.                         "langcode":{
  162.                            "type":"string",
  163.                            "title":"Language Code"
  164.                         },
  165.                         "pathauto":{
  166.                            "type":"integer",
  167.                            "title":"Pathauto state",
  168.                            "description":"Whether an automated alias should be created or not."
  169.                         }
  170.                      },
  171.                      "required":[
  172.                         "pathauto"
  173.                      ],
  174.                      "title":"Синоним URL"
  175.                   },
  176.                   "body":{
  177.                      "type":"object",
  178.                      "properties":{
  179.                         "value":{
  180.                            "type":"string",
  181.                            "title":"Текст"
  182.                         },
  183.                         "format":{
  184.                            "type":"string",
  185.                            "title":"Текстовый формат"
  186.                         },
  187.                         "summary":{
  188.                            "type":"string",
  189.                            "title":"Сводка"
  190.                         }
  191.                      },
  192.                      "required":[
  193.                         "value"
  194.                      ],
  195.                      "title":"Body"
  196.                   }
  197.                },
  198.                "required":[
  199.                   "title",
  200.                   "revision_translation_affected",
  201.                   "metatag",
  202.                   "metatag_normalized",
  203.                   "path"
  204.                ]
  205.             },
  206.             "relationships":{
  207.                "description":"Entity relationships",
  208.                "type":"object",
  209.                "additionalProperties":false,
  210.                "properties":{
  211.                   "node_type":{
  212.                      "type":"object",
  213.                      "properties":{
  214.                         "data":{
  215.                            "type":"object",
  216.                            "required":[
  217.                               "type",
  218.                               "id"
  219.                            ],
  220.                            "properties":{
  221.                               "type":{
  222.                                  "type":"string",
  223.                                  "title":"Referenced resource",
  224.                                  "enum":[
  225.                                     "node_type--node_type"
  226.                                  ]
  227.                               },
  228.                               "id":{
  229.                                  "type":"string",
  230.                                  "title":"Resource ID",
  231.                                  "format":"uuid",
  232.                                  "maxLength":128
  233.                               }
  234.                            }
  235.                         }
  236.                      },
  237.                      "title":"Тип материала"
  238.                   },
  239.                   "revision_uid":{
  240.                      "type":"object",
  241.                      "properties":{
  242.                         "data":{
  243.                            "type":"object",
  244.                            "required":[
  245.                               "type",
  246.                               "id"
  247.                            ],
  248.                            "properties":{
  249.                               "type":{
  250.                                  "type":"string",
  251.                                  "title":"Referenced resource",
  252.                                  "enum":[
  253.                                     "user--user"
  254.                                  ]
  255.                               },
  256.                               "id":{
  257.                                  "type":"string",
  258.                                  "title":"Resource ID",
  259.                                  "format":"uuid",
  260.                                  "maxLength":128
  261.                               }
  262.                            }
  263.                         }
  264.                      },
  265.                      "title":"Пользователь ревизии"
  266.                   },
  267.                   "uid":{
  268.                      "type":"object",
  269.                      "properties":{
  270.                         "data":{
  271.                            "type":"object",
  272.                            "required":[
  273.                               "type",
  274.                               "id"
  275.                            ],
  276.                            "properties":{
  277.                               "type":{
  278.                                  "type":"string",
  279.                                  "title":"Referenced resource",
  280.                                  "enum":[
  281.                                     "user--user"
  282.                                  ]
  283.                               },
  284.                               "id":{
  285.                                  "type":"string",
  286.                                  "title":"Resource ID",
  287.                                  "format":"uuid",
  288.                                  "maxLength":128
  289.                               }
  290.                            }
  291.                         }
  292.                      },
  293.                      "title":"Автор"
  294.                   },
  295.                   "menu_link":{
  296.                      "type":"object",
  297.                      "properties":{
  298.                         "data":{
  299.                            "type":"object",
  300.                            "required":[
  301.                               "type",
  302.                               "id"
  303.                            ],
  304.                            "properties":{
  305.                               "type":{
  306.                                  "type":"string",
  307.                                  "title":"Referenced resource",
  308.                                  "enum":[
  309.                                     "menu_link_content--menu_link_content"
  310.                                  ]
  311.                               },
  312.                               "id":{
  313.                                  "type":"string",
  314.                                  "title":"Resource ID",
  315.                                  "format":"uuid",
  316.                                  "maxLength":128
  317.                               }
  318.                            }
  319.                         }
  320.                      },
  321.                      "title":"Ссылка меню"
  322.                   }
  323.                },
  324.                "required":[
  325.  
  326.                ]
  327.             },
  328.             "links":{
  329.                "type":"object",
  330.                "additionalProperties":{
  331.                   "description":"A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
  332.                   "type":"object",
  333.                   "required":[
  334.                      "href"
  335.                   ],
  336.                   "properties":{
  337.                      "href":{
  338.                         "description":"A string containing the link's URL . ",
  339.                         "type":"string",
  340.                         "format":"uri - reference"
  341.                      },
  342.                      "meta":{
  343.                         "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
  344.                         "type":"object",
  345.                         "additionalProperties":true
  346.                      }
  347.                   }
  348.                }
  349.             },
  350.             "meta":{
  351.                "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
  352.                "type":"object",
  353.                "additionalProperties":true
  354.             }
  355.          },
  356.          "additionalProperties":false
  357.       },
  358.       "meta":{
  359.          "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
  360.          "type":"object",
  361.          "additionalProperties":true
  362.       },
  363.       "links":{
  364.          "type":"object",
  365.          "additionalProperties":{
  366.             "description":"A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
  367.             "type":"object",
  368.             "required":[
  369.                "href"
  370.             ],
  371.             "properties":{
  372.                "href":{
  373.                   "description":"A string containing the link's URL . ",
  374.                   "type":"string",
  375.                   "format":"uri - reference"
  376.                },
  377.                "meta":{
  378.                   "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
  379.                   "type":"object",
  380.                   "additionalProperties":true
  381.                }
  382.             }
  383.          }
  384.       },
  385.       "jsonapi":{
  386.          "description":"An object describing the server's implementation",
  387.          "type":"object",
  388.          "properties":{
  389.             "version":{
  390.                "type":"string"
  391.             },
  392.             "meta":{
  393.                "description":"Non-standard meta-information that can not be represented as an attribute or relationship.",
  394.                "type":"object",
  395.                "additionalProperties":true
  396.             }
  397.          },
  398.          "additionalProperties":false
  399.       }
  400.    },
  401.    "additionalProperties":true
  402. }
Add Comment
Please, Sign In to add comment