DELETE response code must be 204, not 200 according to our API coding
guidelines
Test plan:
prove t/db_dependent/api/v1/biblios.t
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
);
}
else {
- return $c->render( status => 200, openapi => "" );
+ return $c->render( status => 204, openapi => "" );
}
}
catch {
"application/json"
],
"responses": {
- "200": {
+ "204": {
"description": "Biblio deleted",
"schema": {
"type": "string"
# Bibs with no items can be deleted
$t->delete_ok("//$userid:$password@/api/v1/biblios/$biblio_id")
- ->status_is(200)->content_is(q{""});
+ ->status_is(204, 'SWAGGER3.2.4')
+ ->content_is('', 'SWAGGER3.3.4');
$t->delete_ok("//$userid:$password@/api/v1/biblios/$biblio_id")
->status_is(404);