Skip to content

Commit 33a1b29

Browse files
Merge pull request #5667 from usu/fix/category-subresource
fixes naming and uriTemplate of category subresource
2 parents 5314934 + 1766ae4 commit 33a1b29

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

api/src/Entity/Category.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
securityPostDenormalize: 'is_granted("CAMP_MEMBER", object) or is_granted("CAMP_MANAGER", object)'
5959
),
6060
new GetCollection(
61-
name: 'BelongsToCamp_App\Entity\Category_get_collection',
6261
uriTemplate: self::CAMP_SUBRESOURCE_URI_TEMPLATE,
6362
uriVariables: [
6463
'campId' => new Link(
@@ -79,7 +78,7 @@ class Category extends BaseEntity implements BelongsToCampInterface, CopyFromPro
7978
use ClassInfoTrait;
8079
use HasRootContentNodeTrait;
8180

82-
public const CAMP_SUBRESOURCE_URI_TEMPLATE = '/camps/{campId}/categories.{_format}';
81+
public const CAMP_SUBRESOURCE_URI_TEMPLATE = '/camps/{campId}/categories{._format}';
8382

8483
public const ITEM_NORMALIZATION_CONTEXT = [
8584
'groups' => [

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testOpenApiSpecMatchesSnapshot__1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22659,7 +22659,7 @@ paths:
2265922659
get:
2266022660
deprecated: false
2266122661
description: 'Retrieves the collection of Category resources.'
22662-
operationId: BelongsToCamp_App\Entity\Category_get_collection
22662+
operationId: api_camps_campIdcategories_get_collection
2266322663
parameters:
2266422664
-
2266522665
allowEmptyValue: false

0 commit comments

Comments
 (0)