Closed jusdepixel closed 1 month ago
uriVariables should be:
* @param array<string, Link>|array<string, mixed[]>|string[]|string|null $uriVariables
Try
#[ApiResource(
uriTemplate: '/compta/dossiers/{dosId}/journals/{JrnId}',
shortName: 'Journal',
operations: [
new Post(
uriTemplate: '/compta/dossiers/{dosId}/journals'
),
new Put(),
new Delete(),
],
uriVariables: [
'jrnId',
'dosId'
],
provider: JournalProvider::class,
processor: JournalProcessor::class,
)]
Hello everybody !
API Platform version(s) affected: 3.3.3
I have this resource :
I have this error with ApiProperty : Attempted to call an undefined method named "withParameterName" of class "ApiPlatform\Metadata\ApiProperty".