Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

JSON:API Server Endpoints Документация

20/04/2025, by Ivan

Фильтры

Фильтрация статей по ID тега

GET

{{host}}/jsonapi/node/article?include=field_image,field_tags&sort=-created&filter[field_tags.meta.drupal_internal__tid]=2

Параметры запроса:

ПараметрЗначение
includefield_image,field_tags
sort-created
filter[field_tags.meta.drupal_internal__tid]2

Фильтрация статей по UUID тега

GET

{{host}}/jsonapi/node/article?include=field_image,field_tags&sort=-created&filter[field_tags.id]=f203b178-3672-4312-b974-4fb5ea8b35cb

Параметры запроса:

ПараметрЗначение
includefield_image,field_tags
sort-created
filter[field_tags.id]f203b178-3672-4312-b974-4fb5ea8b35cb

Фильтрация статей по заголовку

GET

{{host}}/jsonapi/node/article?filter[title]=Drupal CMS

Параметры запроса:

ПараметрЗначение
filter[title]Drupal CMS

Фильтрация по заголовку (частичное совпадение)

GET

{{host}}/jsonapi/node/article?filter[title][value]=Drupal&filter[title][operator]=CONTAINS

Параметры запроса:

ПараметрЗначение
filter[title][value]Drupal
filter[title][operator]CONTAINS

Фильтрация статей по статусу публикации

GET

{{host}}/jsonapi/node/article?filter[status]=1

Параметры запроса:

ПараметрЗначение
filter[status]1

Статьи, созданные после 1 января 2024

GET

{{host}}/jsonapi/node/article?filter[created][value]=2024-01-01T00:00:00&filter[created][operator]=>=

Параметры запроса:

ПараметрЗначение
filter[created][value]2024-01-01T00:00:00
filter[created][operator]>=

Пагинация

GET

{{host}}/jsonapi/node/article?page[limit]=5&page[offset]=0

Параметры запроса:

ПараметрЗначение
page[limit]5
page[offset]0

Комбинированные фильтры (логика AND)

GET

{{host}}/jsonapi/node/article?filter[status]=1&filter[field_tags.meta.drupal_internal__tid]=5

Параметры запроса:

ПараметрЗначение
filter[status]1
filter[field_tags.meta.drupal_internal__tid]5

Теги

Получить теги

GET

{{host}}/jsonapi/taxonomy_term/tags?sort=name&fields[taxonomy_term--tags]=name,drupal_internal__tid

Параметры запроса:

ПараметрЗначение
sortname
fields[taxonomy_term--tags]name,drupal_internal__tid

Статьи

Список статей

GET

{{host}}/jsonapi/node/article?include=field_image,field_tags&sort=-created

Параметры запроса:

ПараметрЗначение
includefield_image,field_tags
sort-created

Изображение статьи

GET

{{host}}/jsonapi/node/article/b26c80d2-155c-4c7e-9135-5a4011e2ae17/field_image?resourceVersion=id%3A5

Параметры запроса:

ПараметрЗначение
resourceVersionid:5

Меню

Главное меню

GET

{{host}}/jsonapi/menu_items/main

Страницы

Страница по ID

GET

{{host}}/jsonapi/node/page?filter[nid][value]=4

Параметры запроса:

ПараметрЗначение
filter[nid][value]4

Страница по UUID

GET

{{host}}/jsonapi/node/page/8b53db13-613e-45c4-80d7-dc81eba75f11

Веб-форма

Webform

GET

{{host}}/webform/contact

Заголовки:

КлючЗначение
content-typeapplication/json

Webform REST

POST

{{host}}/webform_rest/submit

Заголовки:

КлючЗначение
Content-Typeapplication/json

Тело запроса:

{
    "webform_id": "contact",
    "name": "Ivan Abramenko",
    "subject": "Webform testing submission",
    "email": "levmyshkin89@gmail.com",
    "message": "Webform testing submission"
}

Аутентификация

Аутентификация с помощью API-ключа

Все конечные точки требуют аутентификацию по API-ключу через следующий заголовок:

ЗаголовокЗначение
X-API-Key{{token}}