Запрос:
curl -X 'GET' \ 'https://apicsp.csat.ru/api/v1/notifications' \ -H 'accept: */*' \ -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpY3NwLmNzYXQucnUiLCJhdWQiOiJodHR' \ -H 'Content-Type: application/json'
Ответ:
[
{
"id": 1752,
"creator_id": 125,
"name": "Выезд из геозоны",
"type": "geozone_leave"
},
{
"id": 1748,
"creator_id": 125,
"name": "Превышение оборотов",
"type": "sensor_control"
},
{
"id": 1754,
"creator_id": 125,
"name": "Потеря связи",
"type": "lost_con"
},
{
"id": 1750,
"creator_id": 125,
"name": "Расхождение блоков",
"type": "unit_divergence"
},
{
"id": 1751,
"creator_id": 125,
"name": "Превышение скорости",
"type": "speeding"
}
]
id - id уведомления в системе;
creator_id - id создателя уведомления в системе;
name - Название уведомления в системе;
type - Тип уведомления;
Коды ответов
200 - Success
404 - Could Not Find Resource