API
GET /api/allReturns all hosts in json.
GET /api/historyReturns all History. Not recommended, the output can be a lot.
GET /api/history/:mac/:dateReturns only history of a device with this mac filtered by date. date format can be anything from 2 to 2025-07 to 2025-07-26.
GET /api/history/:mac?num=20Returns only last 20 lines of history of a device with this mac.
GET /api/host/:idReturns host with this id in json.
GET /api/port/:addr/:portGets state of one port of addr. Returns true if port is open or false otherwise. Request example:
curl "http://0.0.0.0:8840/api/port/192.168.2.2/8844"GET /api/edit/:id/:name/*knownEdit host with ID id. Can change name. known is optional, when set to toggle will change Known state.
GET /api/host/del/:idRemove host with ID id.
GET /api/notify_testSend test notification.
GET /api/status/*ifaceShow status (Total number of hosts, online/offline, known/unknown). The iface parameter is optional and shows status for one interface only. For all interfaces just call /api/status/.