visgraph: adding endpoint to get list of relations

This commit is contained in:
2021-11-02 09:49:47 +01:00
parent d06a4b1ca9
commit bd2ee9ddc1
4 changed files with 47 additions and 5 deletions

View File

@@ -900,7 +900,28 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
]
],
]
]
],
[
'class' => \Chill\PersonBundle\Entity\Relationships\Relation::class,
'controller' => \Chill\PersonBundle\Controller\RelationshipApiController::class,
'name' => 'relations',
'base_path' => '/api/1.0/relations/relation',
'base_role' => 'ROLE_USER',
'actions' => [
'_index' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true
],
],
'_entity' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true
]
],
]
],
]
]);
}