$vendor->delete;
return $c->render(
status => 200,
status => 204,
openapi => q{}
);
}
return try {
$city->delete;
return $c->render( status => 200, openapi => "" );
catch {
$c->unhandled_exception($_);
$hold->cancel;
return $c->render( status => 200, openapi => {} );
# check if loans, reservations, debarrment, etc. before deletion!
$patron->delete;
unless ($patron) {
],
"responses": {
"204": {
"description": "Order deleted",
"description": "Order deleted"
"schema": {
"type": "string"
},
"401": {
"description": "Authentication required",
"application/json"
"200": {
"description": "Vendor deleted",
"description": "Vendor deleted"
"description": "City deleted",
"description": "City deleted"
"produces": ["application/json"],
"description": "Successful deletion",
"description": "Hold deleted"
"type": "object"
}],
"description": "Patron deleted successfully",
"description": "Patron deleted"
"400": {
"description": "Patron deletion failed",
-