Get a list of all available boards.
GET /targets/boards
Name | Type | Description |
---|---|---|
extended | bool | Extended information. (optional, default: false) |
curl -X GET https://hwut.de/apiv1/targets/boards
200 OK
[
{
"name": "nucleo-f303re",
"microcontroller": "stm32f303re"
},
{...}
]
or if the extended parameter is set to true:
[
{
"name": "nucleo-f303re",
"microcontroller": "stm32f303re",
"manufacturer": "STMicroelectronics",
"runners": [
42,
21
]
},
{...}
]
Information about the board.
GET /targets/boards/{board}
Name | Type | Description |
---|---|---|
extended | bool | Extended information. (optional, default: false) |
curl -X GET https://hwut.de/apiv1/targets/boards/nucleo-f303re
200 OK
{
"name": "nucleo-f303re",
"microcontroller": "stm32f303re"
}
or if the extended parameter is set to true:
{
"name": "nucleo-f303re",
"microcontroller": "stm32f303re",
"manufacturer": "STMicroelectronics",
"runners": [
42,
21
]
}
PUT /targets/boards/nucleo-f303re
Name | Type | Description |
---|---|---|
microcontroller | string | The microcontroller embedded on the board. |
manufacturer | string | Manufacturer of the board. (optional) |
curl -X PUT https://hwut.de/apiv1/targets/boards/nucleo-f303re?microcontroller=stm32f303re&manufacturer=STMicroelectronics
201 Created
{
"name": "nucleo-f303re",
"microcontroller": "stm32f303re",
"manufacturer": "STMicroelectronics",
"runners": []
}
Delete a board.
DELETE /targets/boards/{board}
curl -X DELETE https://hwut.de/apiv1/targets/boards/nucleo-f303re
204 No Content
Get a list of all available microcontrollers.
GET /targets/microcontrollers
Name | Type | Description |
---|---|---|
extended | bool | Extended information. (optional, default: false) |
curl -X GET https://hwut.de/apiv1/targets/microcontrollers
200 OK
[
{
"name": "nucleo-f303re"
},
{...}
]
or if the extended parameter is set to true:
[
{
"name": "stm32f303re",
"manufacturer": "STMicroelectronics"
},
{...}
]
Information about the microcontroller.
GET /targets/microcontrollers/{microcontroller}
Name | Type | Description |
---|---|---|
extended | bool | Extended information. (optional, default: false) |
curl -X GET https://hwut.de/apiv1/targets/microcontrollers/stm32f303re
200 OK
{
"name": "nucleo-f303re"
}
or if the extended parameter is set to true:
{
"name": "stm32f303re",
"manufacturer": "STMicroelectronics"
}
PUT /targets/microcontrollers/{microcontroller}
Name | Type | Description |
---|---|---|
manufacturer | string | Manufacturer of the microcontroller. (optional) |
curl -X PUT https://hwut.de/apiv1/targets/microcontrollers/stm32f303re?manufacturer=STMicroelectronics
201 Created
{
"name": "stm32f303re",
"manufacturer": "STMicroelectronics"
}
DELETE /targets/microcontrollers/{microcontroller}
curl -X DELETE https://hwut.de/apiv1/targets/microcontroller/stm32f303re
204 No Content