Skip to main content
Skip table of contents

Get the list of created resources

Get the list of created resources

Paginated list of resources

GET /api/admin/v1/analytics/files

Parameters

int page, Pagination page number


int per_page, Number of elements in one pagination page.


int search, Search for resources by name, user login and resource update date


array analytic_groups, Search for resources belonging to resource groups by array of resource group ids


string from, Date from which resources will be displayed


string to, Date until which resources will be displayed

200 OK

Returns a list of resources on the i pagination page

JSON
{
    "data": [
        {
            "id": 1,
            "name": "name",
            "type": "type",
            "type_pretty": "type_pretty",
            "uuid": null,
            "url": "https://vms.local/storage/analytic-files/2022/4/8/CmICjV9h4RNgP3V9evqeNg7HTbRk0juCB0XXXXay7.jpg",
            "created_at": "2022-04-08 16:01:33",
            "updated_at": "2022-04-08 16:01:33"
        }
    ],
    "links": {
        "first": "https://vms.local/api/v1/analytics/files?analytic_case=945&page=1",
        "last": "https://vms.local/api/v1/analytics/files?analytic_case=945&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": null,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/v1/analytics/files?analytic_case=945&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/v1/analytics/files",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

401 Unauthorized

Authorization token not sent or not valid

422 Unprocessable Entity

Returns a JSON object with an error.

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/analytics/files' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "page": 0,
    "per_page": 0,
    "search": 0,
    "analytic_groups": [],
    "from": "string",
    "to": "string"
}'
PHP
PHP
$data = array (
  'page' => 0,
  'per_page' => 0,
  'search' => 0,
  'analytic_groups' => 
  array (
  ),
  'from' => 'string',
  'to' => 'string',
);
$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/analytics/files', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.