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

(-)a/Koha/REST/V1/Acquisitions/Vendors.pm (-1 / +1 lines)
Lines 159-165 sub delete { Link Here
159
        $vendor->delete;
159
        $vendor->delete;
160
160
161
        return $c->render(
161
        return $c->render(
162
            status  => 200,
162
            status  => 204,
163
            openapi => q{}
163
            openapi => q{}
164
        );
164
        );
165
    }
165
    }
(-)a/Koha/REST/V1/Cities.pm (-1 / +4 lines)
Lines 126-132 sub delete { Link Here
126
126
127
    return try {
127
    return try {
128
        $city->delete;
128
        $city->delete;
129
        return $c->render( status => 200, openapi => "" );
129
        return $c->render(
130
            status  => 204,
131
            openapi => q{}
132
        );
130
    }
133
    }
131
    catch {
134
    catch {
132
        $c->unhandled_exception($_);
135
        $c->unhandled_exception($_);
(-)a/Koha/REST/V1/Holds.pm (-1 / +4 lines)
Lines 262-268 sub delete { Link Here
262
    return try {
262
    return try {
263
        $hold->cancel;
263
        $hold->cancel;
264
264
265
        return $c->render( status => 200, openapi => {} );
265
        return $c->render(
266
            status  => 204,
267
            openapi => q{}
268
        );
266
    }
269
    }
267
    catch {
270
    catch {
268
        $c->unhandled_exception($_);
271
        $c->unhandled_exception($_);
(-)a/Koha/REST/V1/Patrons.pm (-1 / +4 lines)
Lines 279-285 sub delete { Link Here
279
279
280
        # check if loans, reservations, debarrment, etc. before deletion!
280
        # check if loans, reservations, debarrment, etc. before deletion!
281
        $patron->delete;
281
        $patron->delete;
282
        return $c->render( status => 200, openapi => {} );
282
        return $c->render(
283
            status  => 204,
284
            openapi => q{}
285
        );
283
    }
286
    }
284
    catch {
287
    catch {
285
        unless ($patron) {
288
        unless ($patron) {
(-)a/api/v1/swagger/paths/acquisitions_orders.json (-4 / +1 lines)
Lines 332-341 Link Here
332
            ],
332
            ],
333
            "responses": {
333
            "responses": {
334
                "204": {
334
                "204": {
335
                    "description": "Order deleted",
335
                    "description": "Order deleted"
336
                    "schema": {
337
                        "type": "string"
338
                    }
339
                },
336
                },
340
                "401": {
337
                "401": {
341
                    "description": "Authentication required",
338
                    "description": "Authentication required",
(-)a/api/v1/swagger/paths/acquisitions_vendors.json (-5 / +2 lines)
Lines 264-274 Link Here
264
        "application/json"
264
        "application/json"
265
      ],
265
      ],
266
      "responses": {
266
      "responses": {
267
        "200": {
267
        "204": {
268
          "description": "Vendor deleted",
268
          "description": "Vendor deleted"
269
          "schema": {
270
            "type": "string"
271
          }
272
        },
269
        },
273
        "401": {
270
        "401": {
274
          "description": "Authentication required",
271
          "description": "Authentication required",
(-)a/api/v1/swagger/paths/cities.json (-5 / +2 lines)
Lines 238-248 Link Here
238
        "application/json"
238
        "application/json"
239
      ],
239
      ],
240
      "responses": {
240
      "responses": {
241
        "200": {
241
        "204": {
242
          "description": "City deleted",
242
          "description": "City deleted"
243
          "schema": {
244
            "type": "string"
245
          }
246
        },
243
        },
247
        "401": {
244
        "401": {
248
          "description": "Authentication required",
245
          "description": "Authentication required",
(-)a/api/v1/swagger/paths/holds.json (-5 / +2 lines)
Lines 355-365 Link Here
355
      ],
355
      ],
356
      "produces": ["application/json"],
356
      "produces": ["application/json"],
357
      "responses": {
357
      "responses": {
358
        "200": {
358
        "204": {
359
          "description": "Successful deletion",
359
          "description": "Hold deleted"
360
          "schema": {
361
            "type": "object"
362
          }
363
        },
360
        },
364
        "401": {
361
        "401": {
365
          "description": "Authentication required",
362
          "description": "Authentication required",
(-)a/api/v1/swagger/paths/patrons.json (-6 / +2 lines)
Lines 669-679 Link Here
669
      }],
669
      }],
670
      "produces": ["application/json"],
670
      "produces": ["application/json"],
671
      "responses": {
671
      "responses": {
672
        "200": {
672
        "204": {
673
          "description": "Patron deleted successfully",
673
          "description": "Patron deleted"
674
          "schema": {
675
            "type": "object"
676
          }
677
        },
674
        },
678
        "400": {
675
        "400": {
679
          "description": "Patron deletion failed",
676
          "description": "Patron deletion failed",
680
- 

Return to bug 25048