Zero Блоки

Get All Base Elements

get

Получение списка всех базовых элементов для zero-блоков.

Responses
200

Successful Response

application/json
get
/api/zero-base-elements
GET /api/zero-base-elements HTTP/1.1
Host: 
Accept: */*
200

Successful Response

[
  {
    "id": 1,
    "type_name": "text",
    "display_name": "text",
    "icon": "text",
    "schema": {},
    "created_at": "2025-12-08T00:24:07.695Z"
  }
]

Create Base Element

post

Создание нового базового элемента (только для администраторов).

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Схема для создания базового элемента

type_namestring · min: 1 · max: 50Required

Название типа элемента (text, button, image и т.д.)

display_namestring · min: 1 · max: 50Required

Отображаемое название элемента (Текст, Кнопка, ...)

iconstring · min: 1 · max: 50Required

Иконка (Square, Image, ...)

schemaobject · SchemaRequired

JSON схема элемента с описанием его свойств

Responses
post
/api/zero-base-elements
POST /api/zero-base-elements HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "type_name": "text",
  "display_name": "text",
  "icon": "text",
  "schema": {}
}
{
  "id": 1,
  "type_name": "text",
  "display_name": "text",
  "icon": "text",
  "schema": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Base Element By Id

get

Получение базового элемента по ID.

Path parameters
element_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-base-elements/{element_id}
GET /api/zero-base-elements/{element_id} HTTP/1.1
Host: 
Accept: */*
{
  "id": 1,
  "type_name": "text",
  "display_name": "text",
  "icon": "text",
  "schema": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Zero Block By Block Id

get

Получение zero-блока по ID блока со всеми слоями и breakpoints.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
block_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/blocks/{block_id}/zero-block
GET /api/blocks/{block_id}/zero-block HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "block_id": 1,
  "created_at": "2025-12-08T00:24:07.695Z",
  "updated_at": "2025-12-08T00:24:07.695Z",
  "layers": [
    {
      "id": 1,
      "zero_block_id": 1,
      "zero_base_element_id": 1,
      "data": {},
      "position": 1,
      "created_at": "2025-12-08T00:24:07.695Z"
    }
  ],
  "responsive_settings": [
    {
      "id": 1,
      "zero_block_id": 1,
      "width": 1,
      "height": 1,
      "props": {},
      "created_at": "2025-12-08T00:24:07.695Z"
    }
  ]
}

Create Zero Block

post

Создание zero-блока для существующего блока.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
block_idintegerRequired
Body
object · ZeroBlockCreateOptional

Схема для создания zero-блока

Responses
post
/api/blocks/{block_id}/zero-block
POST /api/blocks/{block_id}/zero-block HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "id": 1,
  "block_id": 1,
  "created_at": "2025-12-08T00:24:07.695Z",
  "updated_at": "2025-12-08T00:24:07.695Z"
}

Get Zero Block

get

Получение zero-блока по ID zero-блока со всеми слоями и breakpoints.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-blocks/{zero_block_id}
GET /api/zero-blocks/{zero_block_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "block_id": 1,
  "created_at": "2025-12-08T00:24:07.695Z",
  "updated_at": "2025-12-08T00:24:07.695Z",
  "layers": [
    {
      "id": 1,
      "zero_block_id": 1,
      "zero_base_element_id": 1,
      "data": {},
      "position": 1,
      "created_at": "2025-12-08T00:24:07.695Z"
    }
  ],
  "responsive_settings": [
    {
      "id": 1,
      "zero_block_id": 1,
      "width": 1,
      "height": 1,
      "props": {},
      "created_at": "2025-12-08T00:24:07.695Z"
    }
  ]
}

Delete Zero Block

delete

Удаление zero-блока.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Responses
delete
/api/zero-blocks/{zero_block_id}
DELETE /api/zero-blocks/{zero_block_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update Zero Block

patch

Обновление настроек zero-блока.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Body
object · ZeroBlockUpdateOptional

Схема для обновления zero-блока

Responses
200

Successful Response

application/json
patch
/api/zero-blocks/{zero_block_id}
PATCH /api/zero-blocks/{zero_block_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{
  "id": 1,
  "block_id": 1,
  "created_at": "2025-12-08T00:24:07.695Z",
  "updated_at": "2025-12-08T00:24:07.695Z"
}

Get Zero Block Layers

get

Получение списка слоев zero-блока.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-blocks/{zero_block_id}/layers
GET /api/zero-blocks/{zero_block_id}/layers HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "zero_block_id": 1,
    "zero_base_element_id": 1,
    "data": {},
    "position": 1,
    "created_at": "2025-12-08T00:24:07.695Z"
  }
]

Create Layer

post

Создание нового слоя в zero-блоке.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Body

Схема для создания слоя

zero_base_element_idintegerRequired

ID базового элемента

dataany ofOptional

Данные элемента

objectOptional
or
nullOptional
positionintegerOptional

Позиция слоя (z-index)

Default: 0
Responses
post
/api/zero-blocks/{zero_block_id}/layers
POST /api/zero-blocks/{zero_block_id}/layers HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49

{
  "zero_base_element_id": 1,
  "data": {},
  "position": 0
}
{
  "id": 1,
  "zero_block_id": 1,
  "zero_base_element_id": 1,
  "data": {},
  "position": 1,
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Layer

get

Получение слоя по ID с адаптивными настройками.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
layer_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-layers/{layer_id}
GET /api/zero-layers/{layer_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "zero_block_id": 1,
  "zero_base_element_id": 1,
  "data": {},
  "position": 1,
  "created_at": "2025-12-08T00:24:07.695Z",
  "responsive_settings": [
    {
      "id": 1,
      "zero_layer_id": 1,
      "zero_block_responsive_id": 1,
      "x": 1,
      "y": 1,
      "width": 1,
      "height": 1,
      "direction": "text",
      "data": {},
      "created_at": "2025-12-08T00:24:07.695Z"
    }
  ]
}

Delete Layer

delete

Удаление слоя.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
layer_idintegerRequired
Responses
delete
/api/zero-layers/{layer_id}
DELETE /api/zero-layers/{layer_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update Layer

patch

Обновление слоя.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
layer_idintegerRequired
Body

Схема для обновления слоя

zero_base_element_idany ofOptional

ID базового элемента

integerOptional
or
nullOptional
dataany ofOptional

Данные элемента

objectOptional
or
nullOptional
Responses
200

Successful Response

application/json
patch
/api/zero-layers/{layer_id}
PATCH /api/zero-layers/{layer_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "zero_base_element_id": 1,
  "data": {}
}
{
  "id": 1,
  "zero_block_id": 1,
  "zero_base_element_id": 1,
  "data": {},
  "position": 1,
  "created_at": "2025-12-08T00:24:07.695Z"
}

Update Layer Position

patch

Изменение позиции слоя (z-index).

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
layer_idintegerRequired
Body

Схема для обновления позиции слоя

positionintegerRequired

Новая позиция слоя

Responses
200

Successful Response

application/json
patch
/api/zero-layers/{layer_id}/position
PATCH /api/zero-layers/{layer_id}/position HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14

{
  "position": 1
}
{
  "id": 1,
  "zero_block_id": 1,
  "zero_base_element_id": 1,
  "data": {},
  "position": 1,
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Zero Block Responsive Settings

get

Получение списка адаптивных настроек zero-блока.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-blocks/{zero_block_id}/responsive
GET /api/zero-blocks/{zero_block_id}/responsive HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "zero_block_id": 1,
    "width": 1,
    "height": 1,
    "props": {},
    "created_at": "2025-12-08T00:24:07.695Z"
  }
]

Create Zero Block Responsive

post

Создание адаптивных настроек для zero-блока.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
zero_block_idintegerRequired
Body

Схема для создания адаптивных настроек блока

zero_block_idintegerRequired

ID zero-блока

widthintegerRequired

Ширина экрана (breakpoint в пикселях)

heightany ofOptional

Высота блока в пикселях

integerOptional
or
nullOptional
propsany ofOptional

Дополнительные свойства (background, grid_settings и т.д.)

objectOptional
or
nullOptional
Responses
post
/api/zero-blocks/{zero_block_id}/responsive
POST /api/zero-blocks/{zero_block_id}/responsive HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "zero_block_id": 1,
  "width": 1,
  "height": 1,
  "props": {}
}
{
  "id": 1,
  "zero_block_id": 1,
  "width": 1,
  "height": 1,
  "props": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Zero Block Responsive By Id

get

Получение адаптивных настроек по ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
responsive_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-block-responsive/{responsive_id}
GET /api/zero-block-responsive/{responsive_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "zero_block_id": 1,
  "width": 1,
  "height": 1,
  "props": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Delete Zero Block Responsive

delete

Удаление адаптивных настроек.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
responsive_idintegerRequired
Responses
delete
/api/zero-block-responsive/{responsive_id}
DELETE /api/zero-block-responsive/{responsive_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update Zero Block Responsive

patch

Обновление адаптивных настроек.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
responsive_idintegerRequired
Body

Схема для обновления адаптивных настроек блока

widthany ofOptional

Ширина экрана (breakpoint в пикселях)

integerOptional
or
nullOptional
heightany ofOptional

Высота блока в пикселях

integerOptional
or
nullOptional
propsany ofOptional

Дополнительные свойства

objectOptional
or
nullOptional
Responses
200

Successful Response

application/json
patch
/api/zero-block-responsive/{responsive_id}
PATCH /api/zero-block-responsive/{responsive_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "width": 1,
  "height": 1,
  "props": {}
}
{
  "id": 1,
  "zero_block_id": 1,
  "width": 1,
  "height": 1,
  "props": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Layer Responsive Settings

get

Получение списка адаптивных настроек слоя.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
layer_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-layers/{layer_id}/responsive
GET /api/zero-layers/{layer_id}/responsive HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "zero_layer_id": 1,
    "zero_block_responsive_id": 1,
    "x": 1,
    "y": 1,
    "width": 1,
    "height": 1,
    "direction": "text",
    "data": {},
    "created_at": "2025-12-08T00:24:07.695Z"
  }
]

Create Responsive

post

Создание адаптивных настроек для слоя.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
layer_idintegerRequired
Body

Схема для создания адаптивных настроек слоя

zero_block_responsive_idintegerRequired

ID адаптивных настроек блока

xany ofOptional

Позиция по оси X

Default: 0
integerOptional
or
nullOptional
yany ofOptional

Позиция по оси Y

Default: 0
integerOptional
or
nullOptional
widthany ofOptional

Ширина элемента

integerOptional
or
nullOptional
heightany ofOptional

Высота элемента

integerOptional
or
nullOptional
directionany ofOptional

Направление (left/right)

Default: left
stringOptional
or
nullOptional
dataany ofOptional

Дополнительные данные

objectOptional
or
nullOptional
Responses
post
/api/zero-layers/{layer_id}/responsive
POST /api/zero-layers/{layer_id}/responsive HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 92

{
  "zero_block_responsive_id": 1,
  "x": 0,
  "y": 0,
  "width": 1,
  "height": 1,
  "direction": "left",
  "data": {}
}
{
  "id": 1,
  "zero_layer_id": 1,
  "zero_block_responsive_id": 1,
  "x": 1,
  "y": 1,
  "width": 1,
  "height": 1,
  "direction": "text",
  "data": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Get Responsive

get

Получение адаптивных настроек по ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
responsive_idintegerRequired
Responses
200

Successful Response

application/json
get
/api/zero-layer-responsive/{responsive_id}
GET /api/zero-layer-responsive/{responsive_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "zero_layer_id": 1,
  "zero_block_responsive_id": 1,
  "x": 1,
  "y": 1,
  "width": 1,
  "height": 1,
  "direction": "text",
  "data": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Delete Responsive

delete

Удаление адаптивных настроек.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
responsive_idintegerRequired
Responses
delete
/api/zero-layer-responsive/{responsive_id}
DELETE /api/zero-layer-responsive/{responsive_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update Responsive

patch

Обновление адаптивных настроек.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
responsive_idintegerRequired
Body

Схема для обновления адаптивных настроек слоя

xany ofOptional

Позиция по оси X

integerOptional
or
nullOptional
yany ofOptional

Позиция по оси Y

integerOptional
or
nullOptional
widthany ofOptional

Ширина элемента

integerOptional
or
nullOptional
heightany ofOptional

Высота элемента

integerOptional
or
nullOptional
directionany ofOptional

Направление

stringOptional
or
nullOptional
dataany ofOptional

Дополнительные данные

objectOptional
or
nullOptional
Responses
200

Successful Response

application/json
patch
/api/zero-layer-responsive/{responsive_id}
PATCH /api/zero-layer-responsive/{responsive_id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "x": 1,
  "y": 1,
  "width": 1,
  "height": 1,
  "direction": "text",
  "data": {}
}
{
  "id": 1,
  "zero_layer_id": 1,
  "zero_block_responsive_id": 1,
  "x": 1,
  "y": 1,
  "width": 1,
  "height": 1,
  "direction": "text",
  "data": {},
  "created_at": "2025-12-08T00:24:07.695Z"
}

Последнее обновление