Skip to content

Commit 39eea31

Browse files
committed
Add uriVariables to Company.
1 parent 6ca0aa4 commit 39eea31

File tree

1 file changed

+6
-0
lines changed
  • tests/Fixtures/TestBundle/Entity/Issue5736Aerendir

1 file changed

+6
-0
lines changed

tests/Fixtures/TestBundle/Entity/Issue5736Aerendir/Company.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@
3535
),
3636
new API\Get(
3737
uriTemplate: self::API_RESOURCE,
38+
uriVariables: [
39+
self::API_ID_PLACEHOLDER => new API\Link(fromClass: self::class, identifiers: ['id']),
40+
],
3841
),
3942
new API\Post(
4043
read: false,
4144
uriTemplate: self::API_ENDPOINT,
4245
),
4346
new API\Put(
4447
uriTemplate: self::API_RESOURCE,
48+
uriVariables: [
49+
self::API_ID_PLACEHOLDER => new API\Link(fromClass: self::class, identifiers: ['id']),
50+
],
4551
),
4652
],
4753
)]

0 commit comments

Comments
 (0)