Description
I have an ApiResource stored in App\ApiResource with an API attribute:
#[Get(
uriTemplate: '/users/{id}/groups',
openapi: new Operation(tags: ['User']),
normalizationContext: ['groups' => [self::API_READ], 'iri_only' => true],
security: 'is_granted("REPLE_API_SOMETHING")',
provider: UserGroupsProvider::class
)]
final class UserGroups
{
public const string API_READ = 'user_group:read';
// ...
}
If I add a simple:
#[Get]
// ...
The bug disapeear and the docs add an entry for: /api/user_groups/{id}. But the goal here is to have the user identifier then use this ApiResource like a Subresource to get a list of groups.
In ApiPlatform previous 3.3 version, it works well, bu since this version this bug appeared.
API Platform version(s) affected: 3.3.*
Description
I have an ApiResource stored in App\ApiResource with an API attribute:
If I add a simple:
The bug disapeear and the docs add an entry for:
/api/user_groups/{id}
. But the goal here is to have theuser
identifier then use this ApiResource like a Subresource to get a list of groups.In ApiPlatform previous 3.3 version, it works well, bu since this version this bug appeared.