Bug 15496: Add API endoint for deleting a bib
[koha-equinox.git] / api / v1 / swagger / paths / biblios.json
1 {
2   "/biblios/{biblio_id}": {
3     "delete": {
4       "x-mojo-to": "Biblios#delete",
5       "operationId": "deleteBiblio",
6       "tags": ["biblios"],
7       "parameters": [{
8         "$ref": "../parameters.json#/biblio_id_pp"
9       }],
10       "produces": [
11         "application/json"
12       ],
13       "responses": {
14         "200": {
15           "description": "Biblio deleted",
16           "schema": {
17             "type": "string"
18           }
19         },
20         "401": {
21           "description": "Authentication required",
22           "schema": {
23             "$ref": "../definitions.json#/error"
24           }
25         },
26         "403": {
27           "description": "Access forbidden",
28           "schema": {
29             "$ref": "../definitions.json#/error"
30           }
31         },
32         "404": {
33           "description": "Biblio not found",
34           "schema": {
35             "$ref": "../definitions.json#/error"
36           }
37         },
38         "409": {
39           "description": "Unable to perform action on biblio",
40           "schema": {
41             "$ref": "../definitions.json#/error"
42           }
43         },
44         "500": {
45           "description": "Internal error",
46           "schema": {
47             "$ref": "../definitions.json#/error"
48           }
49         },
50         "503": {
51           "description": "Under maintenance",
52           "schema": {
53             "$ref": "../definitions.json#/error"
54           }
55         }
56       },
57       "x-koha-authorization": {
58         "permissions": {
59           "parameters": "edit_catalogue"
60         }
61       }
62     }
63   }
64 }