View | Details | Raw Unified | Return to bug 15496
Collapse All | Expand All

(-)a/Koha/REST/V1/Biblios.pm (-1 / +1 lines)
Lines 54-60 sub delete { Link Here
54
            );
54
            );
55
        }
55
        }
56
        else {
56
        else {
57
            return $c->render( status => 200, openapi => "" );
57
            return $c->render( status => 204, openapi => "" );
58
        }
58
        }
59
    }
59
    }
60
    catch {
60
    catch {
(-)a/api/v1/swagger/paths/biblios.json (-1 / +1 lines)
Lines 11-17 Link Here
11
        "application/json"
11
        "application/json"
12
      ],
12
      ],
13
      "responses": {
13
      "responses": {
14
        "200": {
14
        "204": {
15
          "description": "Biblio deleted",
15
          "description": "Biblio deleted",
16
          "schema": {
16
          "schema": {
17
            "type": "string"
17
            "type": "string"
(-)a/t/db_dependent/api/v1/biblios.t (-2 / +2 lines)
Lines 62-68 subtest 'delete() tests' => sub { Link Here
62
62
63
    # Bibs with no items can be deleted
63
    # Bibs with no items can be deleted
64
    $t->delete_ok("//$userid:$password@/api/v1/biblios/$biblio_id")
64
    $t->delete_ok("//$userid:$password@/api/v1/biblios/$biblio_id")
65
      ->status_is(200)->content_is(q{""});
65
      ->status_is(204, 'SWAGGER3.2.4')
66
      ->content_is('', 'SWAGGER3.3.4');
66
67
67
    $t->delete_ok("//$userid:$password@/api/v1/biblios/$biblio_id")
68
    $t->delete_ok("//$userid:$password@/api/v1/biblios/$biblio_id")
68
      ->status_is(404);
69
      ->status_is(404);
69
- 

Return to bug 15496