Skip to main content
Skip table of contents

Список загруженных клиентов

Список загруженных клиентов

Возвращает список загруженных клиентов.

GET /api/admin/v1/thick-clients

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

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


string sort, поле, по которому нужно отсортировать загруженных клиентов


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


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

200 OK

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

JSON
{
    "data": [
        {
            "id": 5,
            "name": "21312",
            "description": "32132",
            "url": "https://vms.local/storage/downloads/desktop/60e6d67bd225d/1.docx",
            "major_version": 13123,
            "minor_version": 1321,
            "revision_version": 2131,
            "build_version": 123,
            "is_published": 0,
            "created_at": "2021-07-08 16:42:03"
        },
        {
            "id": 4,
            "name": "1321",
            "description": "213213",
            "url": "https://vms.local/storage/downloads/desktop/60e6d66e9e792/2.docx",
            "major_version": 123,
            "minor_version": 21312,
            "revision_version": 213,
            "build_version": 23,
            "is_published": 0,
            "created_at": "2021-07-08 16:41:50"
        },
        {
            "id": 3,
            "name": "wer",
            "description": "wer",
            "url": "https://vms.local/storage/downloads/desktop/60e6d65be7b5e/3.docx",
            "major_version": 234234,
            "minor_version": 234324,
            "revision_version": 2423423,
            "build_version": 234,
            "is_published": 0,
            "created_at": "2021-07-08 16:41:31"
        },
        {
            "id": 1,
            "name": "213",
            "description": "3123",
            "url": "https://vms.local/storage/downloads/desktop/60e44b588ecb3/4.docx",
            "major_version": 21,
            "minor_version": 7,
            "revision_version": 1,
            "build_version": 1,
            "is_published": 0,
            "created_at": "2021-07-06 18:23:52"
        }
    ],
    "links": {
        "first": "https://vms.local/api/admin/v1/thick-clients?per_page=25&page=1",
        "last": "https://vms.local/api/admin/v1/thick-clients?per_page=25&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/thick-clients?per_page=25&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/admin/v1/thick-clients",
        "per_page": 25,
        "to": 4,
        "total": 4
    }
}

401 Unauthorized

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

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/thick-clients' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "per_page": 0,
    "sort": "string",
    "dir": "string",
    "page": 0
}'
PHP
PHP
$data = array (
  'per_page' => 0,
  'sort' => 'string',
  'dir' => 'string',
  '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/thick-clients', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.