Skip to content

Commit 54a4ab8

Browse files
tischsoicbarw4
authored andcommitted
Role policy attributes fixes
1 parent 8fd3538 commit 54a4ab8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/lib/Server/Controller/Role/RolePolicyDeleteController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\HttpFoundation\Response;
1717

1818
#[Delete(
19-
uriTemplate: '/user/roles/{id}/policies/{id}',
19+
uriTemplate: '/user/roles/{roleId}/policies/{policyId}',
2020
name: 'Delete Policy',
2121
openapi: new Model\Operation(
2222
summary: 'Deletes given Policy.',
@@ -25,7 +25,7 @@
2525
],
2626
parameters: [
2727
new Model\Parameter(
28-
name: 'id',
28+
name: 'policyId',
2929
in: 'path',
3030
required: true,
3131
schema: [

src/lib/Server/Controller/Role/RolePolicyLoadByIdController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\HttpFoundation\Response;
1515

1616
#[Get(
17-
uriTemplate: '/user/roles/{id}/policies/{id}',
17+
uriTemplate: '/user/roles/{roleId}/policies/{policyId}',
1818
name: 'Load Policy',
1919
openapi: new Model\Operation(
2020
summary: 'Loads a Policy for the given module and function.',
@@ -41,7 +41,7 @@
4141
],
4242
),
4343
new Model\Parameter(
44-
name: 'id',
44+
name: 'policyId',
4545
in: 'path',
4646
required: true,
4747
schema: [

src/lib/Server/Controller/Role/RolePolicyUpdateController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\HttpFoundation\Response;
2020

2121
#[Patch(
22-
uriTemplate: '/user/roles/{id}/policies/{id}',
22+
uriTemplate: '/user/roles/{roleId}/policies/{policyId}',
2323
name: 'Update Policy',
2424
extraProperties: [OpenApiFactory::OVERRIDE_OPENAPI_RESPONSES => false],
2525
openapi: new Model\Operation(
@@ -56,7 +56,7 @@
5656
],
5757
),
5858
new Model\Parameter(
59-
name: 'id',
59+
name: 'policyId',
6060
in: 'path',
6161
required: true,
6262
schema: [

0 commit comments

Comments
 (0)