Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
f36741a2
Commit
f36741a2
authored
Jun 14, 2019
by
François Agneray
Browse files
Changement output category route + id ouput family
parent
a56dfd59
Changes
2
Show whitespace changes
Inline
Side-by-side
src/Entity/OutputCategory.php
View file @
f36741a2
...
...
@@ -85,6 +85,11 @@ class OutputCategory implements \JsonSerializable
$this
->
outputFamily
=
$outputFamily
;
}
public
function
getOutputFamily
()
{
return
$this
->
outputFamily
;
}
public
function
getAttributes
()
{
return
$this
->
attributes
;
...
...
@@ -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
()
];
}
}
src/routes.php
View file @
f36741a2
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment