From d9b5fe31b09a02f8e3fca0166f836ece94eb97e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 18 Feb 2025 01:50:38 +0100 Subject: [PATCH] chore: disable API GET on entity --- src/Entity/Entity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Entity/Entity.php b/src/Entity/Entity.php index 97b60dc..7b6c689 100644 --- a/src/Entity/Entity.php +++ b/src/Entity/Entity.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName; uriTemplate: '/entities', normalizationContext: ['groups' => ['entity:list', 'event:list']] ), - */ + new Get( uriTemplate: '/entities/{id}', normalizationContext: [ @@ -36,6 +36,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName; ], ] ), + */ ] )] class Entity