);
}
$hold->cancel;
my $cancellation_reason = $c->req->json;
$hold->cancel({ cancellation_reason => $cancellation_reason });
return $c->render_resource_deleted;
summary: Cancel hold
parameters:
- $ref: "../swagger.yaml#/parameters/hold_id_pp"
- name: body
in: body
description: Cancellation reason
required: false
schema:
type: string
- name: x-koha-override
in: header
->status_is(200)
->json_is([]);
$t->delete_ok( "//$userid_3:$password@/api/v1/holds/$reserve_id2" )
$t->delete_ok( "//$userid_3:$password@/api/v1/holds/$reserve_id2" => json => "Cancellation reason" )
->status_is(204, 'SWAGGER3.2.4')
->content_is('', 'SWAGGER3.3.4');
-