Adicion de campos para filtrar y correccion en el los campos de respuesta
This commit is contained in:
@@ -24,6 +24,7 @@ class Activity extends Api
|
|||||||
if ($filter == '' || $filter == 'definition') {
|
if ($filter == '' || $filter == 'definition') {
|
||||||
// DEFINITION
|
// DEFINITION
|
||||||
$definition = array();
|
$definition = array();
|
||||||
|
$response['definition'] = $definition;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($filter == '' || $filter == 'properties') {
|
if ($filter == '' || $filter == 'properties') {
|
||||||
@@ -35,13 +36,9 @@ class Activity extends Api
|
|||||||
unset($properties[$key]);
|
unset($properties[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$response['properties'] = $properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = array(
|
|
||||||
'definition' => $definition,
|
|
||||||
'properties' => $properties
|
|
||||||
);
|
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user