|
|
@@ -23,7 +23,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
collectionOperations: [
|
|
|
'get' => [
|
|
|
'method' => 'GET',
|
|
|
- 'path' => '/public/federation_structures', // required query : '?parent={\d+}'
|
|
|
+ 'path' => '/public/federation_structures',
|
|
|
'normalization_context' => ['groups' => ['federation_structure_collection_get']],
|
|
|
]
|
|
|
],
|
|
|
@@ -34,7 +34,8 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
'requirements' => ['id' => '\d+'],
|
|
|
'normalization_context' => ['groups' => ['federation_structure_item_get']]
|
|
|
]
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ attributes: ["pagination_enabled" => false]
|
|
|
)]
|
|
|
#[ApiFilter(SearchFilter::class, properties: ['name' => 'partial', 'city' => 'exact'])]
|
|
|
#[ApiFilter(NumericFilter::class, properties: ['id', 'parentId'])]
|
|
|
@@ -111,11 +112,11 @@ class FederationStructure
|
|
|
private ?array $practices;
|
|
|
|
|
|
#[ORM\Column(type: 'integer')]
|
|
|
- #[Groups(["federation_structure_item_get"])]
|
|
|
+ #[Groups(["federation_structure_item_get", "federation_structure_collection_get"])]
|
|
|
private ?int $parentId;
|
|
|
|
|
|
- #[ORM\Column(type: 'integer')]
|
|
|
- #[Groups(["federation_structure_item_get"])]
|
|
|
+ #[ORM\Column]
|
|
|
+ #[Groups(["federation_structure_item_get", "federation_structure_collection_get"])]
|
|
|
private ?string $parentName;
|
|
|
|
|
|
#[ORM\Column(type: 'simple_array')]
|