Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactp(api): change the uri to respect the adr
Browse files Browse the repository at this point in the history
tleon committed Nov 29, 2023
1 parent a93ad67 commit 2e55c7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ApiPlatform/Resources/ApiAccess.php
Original file line number Diff line number Diff line change
@@ -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: [

0 comments on commit 2e55c7f

Please sign in to comment.