diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-07-08 11:35:04 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-07-08 17:08:46 +0200 |
commit | a8eccba7066047997543970b83cb8f371923833f (patch) | |
tree | de6d6109f77a81189103371b099f1baf2655ca51 /src/json.h | |
parent | 33b0c6f694c3365e6280b01d9253aefa892075e9 (diff) |
Add GET /hardware REST request
This patch implements HTTP GET /hardware request which returns a list of
the hardware associated with a particular computer.
Request: GET /hardware
{
"scope": {
"id": 6,
"type": "computer"
}
}
Response: 200 OK
{
"hardware": [
{
"type": "Microprocesadores",
"description": "CPU arch:x86 target:x86_64 cores:4"
},
{
"type": "Memorias",
"description": "QEMU 4096MiB"
},
{
"type": "Tarjetas gráficas",
"description": "Red Hat, Inc Virtio GPU"
},
{
"type": "Tarjetas de Red",
"description": "Intel Corporation 82540EM Gigabit Ethernet Controller
QEMU Virtual Machine"
},
{
"type": "Controladores IDE",
"description": "Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
Qemu virtual machine"
}
]
}
Diffstat (limited to 'src/json.h')
0 files changed, 0 insertions, 0 deletions