1
0
Fork 0

mejoras en api rest

This commit is contained in:
humano 2018-10-15 14:14:18 -05:00
parent 61b68d6bf9
commit 60ee7b31c8
3 changed files with 5 additions and 3 deletions

1
rest/index.php Normal file
View File

@ -0,0 +1 @@

1
rest/src/index.php Normal file
View File

@ -0,0 +1 @@

View File

@ -10,7 +10,7 @@ $app ->get('/api/proyectos', function(Request $request, Response $response){
$array = aplicaciones_listado("",'','array','');
echo json_encode($array);
echo json_encode($array,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
});
/// aplicaciones por proyecto
@ -18,7 +18,7 @@ $app ->get('/api/proyectos/{id}', function(Request $request, Response $response)
$id= $request->getAttribute('id');
$array = empresa_datos("$id",'array');
echo json_encode($array);
echo json_encode($array,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
});
@ -29,7 +29,7 @@ $app ->get('/api/proyectos/{id}/aplicaciones', function(Request $request, Respon
$id= $request->getAttribute('id');
$array = aplicaciones_listado("$id",'','array','');
echo json_encode($array);
echo json_encode($array,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
});