diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-10-20 11:27:56 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-10-20 13:44:44 +0200 |
commit | 2958d23db2e7938905ce351d2737aec6be9ac158 (patch) | |
tree | b9a499ab185f166f0228b92dc76c205c20add0e5 /tests | |
parent | 25c1c16e99a2fbc19002b2ca06d0266f5276d3a8 (diff) |
#942 Use client's IP as filter in GET /hardware
This patch uses client's IP instead of scope ID as a filter for the
request.
Request:
GET /hardware
{
"client": ["192.168.56.11"]
}
Response:
200 OK
{
"hardware": [
{
"description": "BIOS",
"type": "Tipo de proceso de arranque"
},
{
"description": "QEMU Standard PC (i440FX + PIIX, 1996) v.pc-i440fx-5.1",
"type": "Marca y modelo del equipo"
},
{
"description": "Intel Corp. Intel Core Processor (Haswell, no TSX, IBRS) 2GHz v.pc-i440fx-5.1",
"type": "Microprocesadores"
},
{
"description": "QEMU 2049MiB (DIMM 0)",
"type": "Memorias"
},
{
"description": "Red Hat, Inc. Virtio network device v.00",
"type": "Tarjetas de Red"
}
]
}
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions