Skip to main content
Skip table of contents

Дома

Дома

Список домов

GET /api/admin/v1/csa/houses

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

int street_id, id улицы, в которой необходимо получить дома Улицы

200 OK

Список домов

JSON
[
    {
        "house_code": 1730696,
        "house_num": 1,
        "house_lit": "",
        "subhouse_num": ""
    },
    {
        "house_code": 1200077,
        "house_num": 12,
        "house_lit": "",
        "subhouse_num": ""
    },
    {
        "house_code": 1200078,
        "house_num": 22,
        "house_lit": "",
        "subhouse_num": ""
    },
    {
        "house_code": 1200079,
        "house_num": 33,
        "house_lit": "",
        "subhouse_num": ""
    },
    {
        "house_code": 1200080,
        "house_num": 37,
        "house_lit": "",
        "subhouse_num": ""
    },
    {
        "house_code": 1200081,
        "house_num": 43,
        "house_lit": "",
        "subhouse_num": ""
    },
    {
        "house_code": 1496865,
        "house_num": 57,
        "house_lit": "",
        "subhouse_num": ""
    }
]

401 Unauthorized

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

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

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

If this problem persists, please contact our support.