summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/server.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-09-27 12:06:49 +0000
committerramon <ramongomez@us.es>2016-09-27 12:06:49 +0000
commit3b5daf8a01d996b1deb530325363759e6d0e37f6 (patch)
tree4389d1ab14be95dfb547f18a7a50c28901571209 /admin/WebConsole/rest/server.php
parentac8b234e30a66f826b431954d23b23d80ecb0247 (diff)
#708: Continuar con la documentación de la API REST con Swagger; modificar la respuesta de la ruta {{{GET /ous/:ouid/images/:imageid}}} para normalizar la salida de datos.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5017 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/server.php')
-rw-r--r--admin/WebConsole/rest/server.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php
index 6137eb4e..ab8ce60e 100644
--- a/admin/WebConsole/rest/server.php
+++ b/admin/WebConsole/rest/server.php
@@ -758,7 +758,7 @@ $app->get('/ous/:ouid/images/:imgid', 'validateApiKey',
$response['description'] = $rs->campos["descripcion"];
$response['comments'] = $rs->campos["comentarios"];
$response['inremotepc'] = $rs->campos["inremotepc"]==0 ? false: true;
- $response['repoid'] = $rs->campos["idrepositorio"];
+ $response['repo']['id'] = $rs->campos["idrepositorio"];
switch ($rs->campos["tipo"]) {
case 1: $response['type'] = "monolithic"; break;
case 2: $response['type'] = "base"; break;
@@ -769,9 +769,9 @@ $app->get('/ous/:ouid/images/:imgid', 'validateApiKey',
default: $response['type'] = $rs->campos["tipo"];
}
if ($rs->campos["idordenador"] != 0) {
- $response['clientid'] = $rs->campos["idordenador"];
- $response['disk'] = $rs->campos["numdisk"];
- $response['partition'] = $rs->campos["numpar"];
+ $response['client']['id'] = $rs->campos["idordenador"];
+ $response['client']['disk'] = $rs->campos["numdisk"];
+ $response['client']['partition'] = $rs->campos["numpar"];
$response['creationdate'] = $rs->campos["fechacreacion"];
$response['release'] = $rs->campos["revision"];
}