Skip to main content
Skip table of contents

Список переводов

Получение списка переводов

Возвращает историю изменения всех переводов.

GET /api/admin/v1/dictionaries

Параметры метода

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


int page, номер страницы пагинации

200 OK

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

JSON
{
    "data": [
        {
            "id": 393,
            "revision": 0,
            "language": "ru",
            "translation": {
                "outages": "Перебои в работе 1",
                "no_image": "Нет изображения",
                "no_sound": "Нет звука",
                "foreign_objects": "Посторонние предметы в объективе",
                "swivel_mechanism_not_working": "Неисправен поворотный механизм"
            },
            "is_delete": 0,
            "type": "issues",
            "created_at": "2022-05-23 13:22:15",
            "updated_at": "2022-05-23 13:22:15"
        }
    ],
    "links": {
        "first": "http://vms/api/admin/v1/dictionaries?per_page=1&page=1",
        "last": "http://vms/api/admin/v1/dictionaries?per_page=1&page=13",
        "prev": null,
        "next": "http://vms/api/admin/v1/dictionaries?per_page=1&page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 13,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=10",
                "label": "10",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=11",
                "label": "11",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=12",
                "label": "12",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=13",
                "label": "13",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/dictionaries?per_page=1&page=2",
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "http://vms/api/admin/v1/dictionaries",
        "per_page": "1",
        "to": 1,
        "total": 13
    }
}

401 Unauthorized

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

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/dictionaries' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'per_page' => 0,
  'page' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/dictionaries', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.