Commit f36741a2 authored by François Agneray's avatar François Agneray
Browse files

Changement output category route + id ouput family

parent a56dfd59
......@@ -84,6 +84,11 @@ class OutputCategory implements \JsonSerializable
{
$this->outputFamily = $outputFamily;
}
public function getOutputFamily()
{
return $this->outputFamily;
}
public function getAttributes()
{
......@@ -95,7 +100,8 @@ class OutputCategory implements \JsonSerializable
return [
'id' => $this->getId(),
'label' => $this->getLabel(),
'display' => $this->getDisplay()
'display' => $this->getDisplay(),
'id_output_family' => $this->getOutputFamily()->getId()
];
}
}
......@@ -31,8 +31,8 @@ $app->map(['OPTIONS', 'GET', 'POST'], '/metadata/project', App\Action\Meta\Proje
$app->map(['OPTIONS', 'GET', 'PUT', 'DELETE'], '/metadata/project/{name}', App\Action\Meta\ProjectAction::class);
$app->map(['OPTIONS', 'GET', 'POST'], '/metadata/family/{type}', App\Action\Meta\FamilyListAction::class);
$app->map(['OPTIONS', 'GET', 'PUT', 'DELETE'], '/metadata/family/{type}/{id}', App\Action\Meta\FamilyAction::class);
$app->map(['OPTIONS', 'GET', 'POST'], '/metadata/category', App\Action\Meta\OutputCategoryListAction::class);
$app->map(['OPTIONS', 'GET', 'PUT', 'DELETE'], '/metadata/category/{id}', App\Action\Meta\OutputCategoryAction::class);
$app->map(['OPTIONS', 'GET', 'POST'], '/metadata/output-category', App\Action\Meta\OutputCategoryListAction::class);
$app->map(['OPTIONS', 'GET', 'PUT', 'DELETE'], '/metadata/output-category/{id}', App\Action\Meta\OutputCategoryAction::class);
$app->map(['OPTIONS', 'GET', 'POST'], '/metadata/dataset', App\Action\Meta\DatasetListAction::class);
$app->map(['OPTIONS', 'GET', 'PUT', 'DELETE'], '/metadata/dataset/{name}', App\Action\Meta\DatasetAction::class);
$app->map(['OPTIONS', 'GET', 'PUT'], '/metadata/dataset/{name}/attribute', App\Action\Meta\AttributeListAction::class);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment