*/ #[ ApiResource( shortName: 'Dummy', operations: [ new Get(name: 'get'), new Get(name: 'custom2', uriTemplate: '/foo'), new Post(name: 'custom', uriTemplate: '/foo'), new GetCollection(), ], ) ] class Dummy81 { /** * @var int */ private $id; /** * @var string * * @Assert\NotBlank */ #[ApiProperty(iris: ['http://schema.org/name'])] private $name; public function getId(): int { return $this->id; } public function setName(string $name) { $this->name = $name; } public function getName(): string { return $this->name; } }