Skip to main content
Skip table of contents

Список всех домофонов

GET/api/admin/v1/intercoms

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

per_pagerequired

int

Количество элементов в одной странице пагинации. По умолчанию 25 штук

pagerequired

int

Номер страницы пагинации

searchrequired

string

Количество элементов в одной странице пагинации. По умолчанию 25 штук

sortrequired

string

Поле, по которому нужно отсортировать сервера

dirrequired

string

В каком направлении нужно отсортировать. desc – от большего к меньшему, asc – от меньшего к большему

vendorrequired

string

Фильтрация по модели. В Основные конфигурации под ключом intercom_vendors

statusrequired

string

Фильтрация по статусу. В Основные конфигурации под ключом intercom_statuses

fromrequired

date

Начало интервала времени

torequired

date

Конец интервала времени

department_typerequired

string

Фильтр по типу входа. В Основные конфигурации под ключом intercom_statuses

Response

200

Успешный ответ

JSON
{
    "data": [
        {
            "id": 28,
            "title": null,
            "is_online": false,
            "group_id": null,
            "camera_id": null,
            "flat_from": null,
            "flat_to": null,
            "flat_offset": null,
            "department": null,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "7b23d697-04db-4d00-ab88-fae8846bf9af",
            "address": null,
            "group": null,
            "created_at": "2022-08-24 16:16:12",
            "updated_at": "2022-08-24 16:16:12",
            "mac": "02:A9:D0:3F:1B:63",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "uninstalled",
            "status_pretty": "Не установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        },
        {
            "id": 29,
            "title": null,
            "is_online": false,
            "group_id": null,
            "camera_id": null,
            "flat_from": null,
            "flat_to": null,
            "flat_offset": null,
            "department": null,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "272cc71e-6b7f-44b6-93b2-2d5ce551e482",
            "address": null,
            "group": null,
            "created_at": "2022-08-24 16:16:12",
            "updated_at": "2022-08-24 16:16:12",
            "mac": "02:A2:DD:63:1A:55",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "uninstalled",
            "status_pretty": "Не установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        },
        {
            "id": 25,
            "title": null,
            "is_online": false,
            "group_id": null,
            "camera_id": null,
            "flat_from": null,
            "flat_to": null,
            "flat_offset": null,
            "department": null,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "address": null,
            "group": null,
            "created_at": "2022-08-24 16:16:11",
            "updated_at": "2022-08-24 16:16:11",
            "mac": "02:40:0D:B3:0A:FE",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "uninstalled",
            "status_pretty": "Не установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        },
        {
            "id": 26,
            "title": "qwerty",
            "is_online": false,
            "group_id": 217498,
            "camera_id": 6180,
            "flat_from": 10,
            "flat_to": 20,
            "flat_offset": null,
            "department": 2,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "2d68b836-6f27-4650-8dae-9e80ff9bd26f",
            "address": "intercom_sub_2, intercom_sub_3, intercom_sub_4",
            "group": {
                "id": 217498,
                "name": "intercom_sub_4",
                "full_pretty": "intercom_main, intercom_sub_1, intercom_sub_2, intercom_sub_3, intercom_sub_4",
                "is_house": 1,
                "cameras_count": 0,
                "parent_id": 217497,
                "csa_id": null,
                "intercoms_count": 0
            },
            "created_at": "2022-08-24 16:16:11",
            "updated_at": "2022-08-24 16:16:11",
            "mac": "02:03:42:31:7C:79",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "installed",
            "status_pretty": "Установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        },
        {
            "id": 27,
            "title": null,
            "is_online": false,
            "group_id": null,
            "camera_id": null,
            "flat_from": null,
            "flat_to": null,
            "flat_offset": null,
            "department": null,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "e276308c-eed3-4376-98e6-6702debc19ec",
            "address": null,
            "group": null,
            "created_at": "2022-08-24 16:16:11",
            "updated_at": "2022-08-24 16:16:12",
            "mac": "02:E2:6B:66:E3:7D",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "uninstalled",
            "status_pretty": "Не установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        },
        {
            "id": 23,
            "title": null,
            "is_online": false,
            "group_id": 217498,
            "camera_id": 6158,
            "flat_from": 10,
            "flat_to": 40,
            "flat_offset": null,
            "department": 3,
            "department_name": null,
            "department_type": "main",
            "department_type_pretty": "Вход",
            "uuid": "e7a06b0d-512b-4d10-8866-11d277fa7f0a",
            "address": "intercom_sub_2, intercom_sub_3, intercom_sub_4",
            "group": {
                "id": 217498,
                "name": "intercom_sub_4",
                "full_pretty": "intercom_main, intercom_sub_1, intercom_sub_2, intercom_sub_3, intercom_sub_4",
                "is_house": 1,
                "cameras_count": 0,
                "parent_id": 217497,
                "csa_id": null,
                "intercoms_count": 0
            },
            "created_at": "2022-08-24 16:16:10",
            "updated_at": "2022-09-20 12:09:03",
            "mac": "02:DC:87:CE:0C:F7",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "installed",
            "status_pretty": "Установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        },
        {
            "id": 24,
            "title": null,
            "is_online": false,
            "group_id": null,
            "camera_id": null,
            "flat_from": null,
            "flat_to": null,
            "flat_offset": null,
            "department": null,
            "department_name": null,
            "department_type": null,
            "department_type_pretty": null,
            "uuid": "701cb632-e0c6-463d-9599-b0ba8945492d",
            "address": null,
            "group": null,
            "created_at": "2022-08-24 16:16:10",
            "updated_at": "2022-08-24 16:16:11",
            "mac": "02:43:1A:2E:CF:D2",
            "vendor": "sputnik",
            "vendor_pretty": "Спутник",
            "status": "uninstalled",
            "status_pretty": "Не установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком"
        }
    ],
    "links": {
        "first": "http://127.0.0.1:8080/api/admin/v1/intercoms?page=1",
        "last": "http://127.0.0.1:8080/api/admin/v1/intercoms?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "http://127.0.0.1:8080/api/admin/v1/intercoms?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "http://127.0.0.1:8080/api/admin/v1/intercoms",
        "per_page": 15,
        "to": 7,
        "total": 7
    }
}
401

Токен авторизации не передан или не валидный, см. Получение токена

Пример

JSON
curl -k --location --request GET 'https://vms.local/api/admin/v1/intercoms?per_page=int&page=int&search=string&sort=string&dir=string&vendor=string&status=string&from=date&to=date&department_type=string' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.