['method' => 'POST', 'path' => 'servers/{server_uuid}/destinations', 'ability' => 'write', 'description' => 'create a destination on a server (data: network, name, type standalone|swarm)'], 'update' => ['method' => 'PATCH', 'path' => 'destinations/{uuid}', 'ability' => 'write', 'description' => 'rename a destination (data: name)'], 'delete' => ['method' => 'DELETE', 'path' => 'destinations/{uuid}', 'ability' => 'delete', 'confirm' => true, 'description' => 'delete a destination without resources and remove its Docker network'], ]; } protected function pathParams(): array { return [ 'server_uuid' => 'Server UUID (create only).', 'uuid' => 'Destination UUID (update and delete).', ]; } protected function dataDescription(): string { return 'Request body, same fields as the REST API: network, name, type (create); name (update).'; } }