status console / актуально <= ч
история
справка
API без авторизации. Ответы JSON. Время UTC.
POST /api/statuses
curl -X POST http://localhost:42000/api/statuses -H 'Content-Type: application/json' -d '{"source":"sbs-test","indicator":"ИФТ","status":"green","note":"ok"}'
Ответ:
{"items":[{"id":1,"source":"sbs-test","indicator":"ИФТ","status":"green","note":"ok","updated_at":"2026-04-27T16:01:00Z","received_at":"2026-04-27T16:01:00Z"}],"count":1}
POST /api/statuses пакетно
curl -X POST http://localhost:42000/api/statuses -H 'Content-Type: application/json' -d '{"source":"sbs-test","items":[{"indicator":"ИФТ","status":"green"},{"indicator":"API","status":"yellow"},{"indicator":"БД","status":"red"}]}'
GET /api/statuses/current
curl http://localhost:42000/api/statuses/current
GET /api/statuses/history
curl 'http://localhost:42000/api/statuses/history?source=sbs-test&indicator=ИФТ&limit=100'
POST /api/statuses/clear
капча:
curl -X POST http://localhost:42000/api/statuses/clear -H 'Content-Type: application/json' -d '{"captcha":"12"}'