MOD - Endpoints I1
Implement the following endpoints in the java mod
HTTP endpoints
-
/heartbeat Simple endpoint that returns HTTP status code 200
-
/logs Show the last 50 log lines as they were intercepted from the logs
-
/metrics Show a JSON dictionary containing three keys with
int
values:heapFree
,heapUsed
,heapTotal
Server-side commands
-
/beacon Send “It’s working” to the command source
Edited by Pedro Silva