[ 'security' => 'is_granted("ROLE_FILE")', 'method' => 'GET', 'path' => '/download/{fileId}', 'requirements' => ['fileId' => '\d+'] ], ], compositeIdentifier: false, )] class DownloadRequest { #[ApiProperty(identifier: true)] private int $fileId; /** * @return int */ public function getFileId(): int { return $this->fileId; } /** * @param int $fileId */ public function setFileId(int $fileId): void { $this->fileId = $fileId; } }