Retrieve version information.
GET /runners/*
GET /runners/by_board/{board}
curl -X GET https://hwut.de/apiv1/runners/by_board/nucleo-f303re
200 OK
[
{
"id": 42,
"enabled": true,
"board": "nucleo-f303re"
},
{...}
]
or if the user owns the runner:
[
{
"id": 42,
"token": "cI3lkAFM5KyREj1M78eeSbBeslAje-gRz2fWbe34a6U",
"created": "2020-01-01 00:00:00.000000",
"enabled": true,
"last_seen": "2020-03-01 00:00:00.000000",
"ping_counter": 421337,
"job_counter": 1337,
"busy": false,
"board": "nucleo-f303re"
},
{...}
]
or an empty list if no runner is found.
Get information about the specified runner.
GET /runners/{id}
curl -X GET https://hwut.de/apiv1/runners/42
200 OK
{
"id": 42,
"enabled": true,
"board": "nucleo-f303re"
}
or if the user owns the runner:
{
"id": 42,
"token": "cI3lkAFM5KyREj1M78eeSbBeslAje-gRz2fWbe34a6U",
"created": "2020-01-01 00:00:00.000000",
"enabled": true,
"last_seen": "2020-03-01 00:00:00.000000",
"ping_counter": 421337,
"job_counter": 1337,
"busy": false,
"board": "nucleo-f303re"
}
PUT /runners/add
Name | Type | Description |
---|---|---|
board | string | Board the runner is using |
curl -X PUT https://hwut.de/apiv1/runners/add?board=nucleo-f303re
200 Created
Header: Location: /runners/42
DELETE /runners/{id}
curl -X DELETE https://hwut.de/apiv1/runner/42
204 No Content