Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refacto(api): change the uri to respect the adr #7

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ApiPlatform/Resources/ApiAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#[ApiResource(
operations: [
new Get(
uriTemplate: '/api-access/{apiAccessId}',
uriTemplate: '/apiAccess/{apiAccessId}',
requirements: ['apiAccessId' => '\d+'],
openapiContext: [
'summary' => 'Get API Access details',
Expand Down Expand Up @@ -75,7 +75,7 @@
]
),
new Delete(
uriTemplate: '/api-access/{apiAccessId}',
uriTemplate: '/apiAccess/{apiAccessId}',
requirements: ['apiAccessId' => '\d+'],
openapiContext: [
'summary' => 'Delete API Access details',
Expand Down Expand Up @@ -106,7 +106,7 @@
]
),
new Post(
uriTemplate: '/api-access',
uriTemplate: '/apiAccess',
processor: CommandProcessor::class,
extraProperties: [
'command' => AddApiAccessCommand::class,
Expand All @@ -115,7 +115,7 @@
]
),
new Put(
uriTemplate: '/api-access/{apiAccessId}',
uriTemplate: '/apiAccess/{apiAccessId}',
read: false,
processor: CommandProcessor::class,
extraProperties: [
Expand Down