From 2e55c7f4085a9522eb67ef25150c244f633059df Mon Sep 17 00:00:00 2001 From: tleon Date: Wed, 29 Nov 2023 15:33:24 +0100 Subject: [PATCH] refactp(api): change the uri to respect the adr --- src/ApiPlatform/Resources/ApiAccess.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ApiPlatform/Resources/ApiAccess.php b/src/ApiPlatform/Resources/ApiAccess.php index 08ca2c6..fdacea4 100644 --- a/src/ApiPlatform/Resources/ApiAccess.php +++ b/src/ApiPlatform/Resources/ApiAccess.php @@ -45,7 +45,7 @@ #[ApiResource( operations: [ new Get( - uriTemplate: '/api-access/{apiAccessId}', + uriTemplate: '/apiAccess/{apiAccessId}', requirements: ['apiAccessId' => '\d+'], openapiContext: [ 'summary' => 'Get API Access details', @@ -75,7 +75,7 @@ ] ), new Delete( - uriTemplate: '/api-access/{apiAccessId}', + uriTemplate: '/apiAccess/{apiAccessId}', requirements: ['apiAccessId' => '\d+'], openapiContext: [ 'summary' => 'Delete API Access details', @@ -106,7 +106,7 @@ ] ), new Post( - uriTemplate: '/api-access', + uriTemplate: '/apiAccess', processor: CommandProcessor::class, extraProperties: [ 'command' => AddApiAccessCommand::class, @@ -115,7 +115,7 @@ ] ), new Put( - uriTemplate: '/api-access/{apiAccessId}', + uriTemplate: '/apiAccess/{apiAccessId}', read: false, processor: CommandProcessor::class, extraProperties: [