@@ -, +, @@ --- Koha/REST/V1/Biblios.pm | 2 +- api/v1/swagger/paths/biblios.json | 2 +- t/db_dependent/api/v1/biblios.t | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) --- a/Koha/REST/V1/Biblios.pm +++ a/Koha/REST/V1/Biblios.pm @@ -54,7 +54,7 @@ sub delete { ); } else { - return $c->render( status => 200, openapi => "" ); + return $c->render( status => 204, openapi => "" ); } } catch { --- a/api/v1/swagger/paths/biblios.json +++ a/api/v1/swagger/paths/biblios.json @@ -11,7 +11,7 @@ "application/json" ], "responses": { - "200": { + "204": { "description": "Biblio deleted", "schema": { "type": "string" --- a/t/db_dependent/api/v1/biblios.t +++ a/t/db_dependent/api/v1/biblios.t @@ -62,7 +62,8 @@ subtest 'delete() tests' => sub { # 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); --