'Delete a chapter (soft delete)', 'description' => 'Marks a chapter as deleted by setting its visibility to false', 'parameters' => [ [ 'name' => 'id', 'in' => 'path', 'required' => true, 'schema' => [ 'type' => 'string' ], 'description' => 'The chapter ID' ] ], 'responses' => [ '204' => [ 'description' => 'Chapter successfully deleted' ], '404' => [ 'description' => 'Chapter not found' ] ] ] ) ] )] class DeleteChapterResource { public function __construct( public string $id ) { } }