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') {
|
||||
// DEFINITION
|
||||
$definition = array();
|
||||
$response['definition'] = $definition;
|
||||
}
|
||||
|
||||
if ($filter == '' || $filter == 'properties') {
|
||||
@@ -35,13 +36,9 @@ class Activity extends Api
|
||||
unset($properties[$key]);
|
||||
}
|
||||
}
|
||||
$response['properties'] = $properties;
|
||||
}
|
||||
|
||||
$response = array(
|
||||
'definition' => $definition,
|
||||
'properties' => $properties
|
||||
);
|
||||
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user