|
Lines 1-12
Link Here
|
| 1 |
{ |
1 |
{ |
| 2 |
"/biblios/{biblio_id}": { |
2 |
"/biblios/{biblio_id}": { |
|
|
3 |
"get": { |
| 4 |
"x-mojo-to": "Biblios#get", |
| 5 |
"operationId": "getBiblio", |
| 6 |
"tags": [ |
| 7 |
"biblios" |
| 8 |
], |
| 9 |
"parameters": [ |
| 10 |
{ |
| 11 |
"$ref": "../parameters.json#/biblio_id_pp" |
| 12 |
} |
| 13 |
], |
| 14 |
"produces": [ |
| 15 |
"application/json", |
| 16 |
"application/marcxml+xml", |
| 17 |
"application/marc-in-json", |
| 18 |
"application/marc" |
| 19 |
], |
| 20 |
"responses": { |
| 21 |
"200": { |
| 22 |
"description": "A biblio" |
| 23 |
}, |
| 24 |
"401": { |
| 25 |
"description": "Authentication required", |
| 26 |
"schema": { |
| 27 |
"$ref": "../definitions.json#/error" |
| 28 |
} |
| 29 |
}, |
| 30 |
"403": { |
| 31 |
"description": "Access forbidden", |
| 32 |
"schema": { |
| 33 |
"$ref": "../definitions.json#/error" |
| 34 |
} |
| 35 |
}, |
| 36 |
"404": { |
| 37 |
"description": "Biblio not found", |
| 38 |
"schema": { |
| 39 |
"$ref": "../definitions.json#/error" |
| 40 |
} |
| 41 |
}, |
| 42 |
"406": { |
| 43 |
"description": "Not acceptable", |
| 44 |
"schema": { |
| 45 |
"type": "array", |
| 46 |
"description": "Accepted content-types", |
| 47 |
"items": { |
| 48 |
"type": "string" |
| 49 |
} |
| 50 |
} |
| 51 |
}, |
| 52 |
"500": { |
| 53 |
"description": "Internal server error", |
| 54 |
"schema": { |
| 55 |
"$ref": "../definitions.json#/error" |
| 56 |
} |
| 57 |
}, |
| 58 |
"503": { |
| 59 |
"description": "Under maintenance", |
| 60 |
"schema": { |
| 61 |
"$ref": "../definitions.json#/error" |
| 62 |
} |
| 63 |
} |
| 64 |
}, |
| 65 |
"x-koha-authorization": { |
| 66 |
"permissions": { |
| 67 |
"catalogue": "1" |
| 68 |
} |
| 69 |
} |
| 70 |
}, |
| 3 |
"delete": { |
71 |
"delete": { |
| 4 |
"x-mojo-to": "Biblios#delete", |
72 |
"x-mojo-to": "Biblios#delete", |
| 5 |
"operationId": "deleteBiblio", |
73 |
"operationId": "deleteBiblio", |
| 6 |
"tags": ["biblios"], |
74 |
"tags": [ |
| 7 |
"parameters": [{ |
75 |
"biblios" |
| 8 |
"$ref": "../parameters.json#/biblio_id_pp" |
76 |
], |
| 9 |
}], |
77 |
"parameters": [ |
|
|
78 |
{ |
| 79 |
"$ref": "../parameters.json#/biblio_id_pp" |
| 80 |
} |
| 81 |
], |
| 10 |
"produces": [ |
82 |
"produces": [ |
| 11 |
"application/json" |
83 |
"application/json" |
| 12 |
], |
84 |
], |
| 13 |
- |
|
|