4 "x-mojo-to": "Library#list",
5 "operationId": "listLibrary",
13 "description": "Case insensitive 'starts-with' search on name",
20 "description": "Case insensitive 'starts-with' search on address1",
27 "description": "Case insensitive 'starts-with' search on address2",
34 "description": "Case insensitive 'starts-with' search on address3",
39 "name": "postal_code",
41 "description": "Case insensitive 'starts-with' search on postal code",
48 "description": "Case insensitive 'starts-with' search on city",
55 "description": "Case insensitive 'starts-with' search on state",
62 "description": "Case insensitive 'starts_with' search on country",
69 "description": "Case insensitive 'starts_with' search on phone number",
76 "description": "Case insensitive 'starts_with' search on fax number",
83 "description": "Case insensitive 'starts_with' search on email address",
88 "name": "reply_to_email",
90 "description": "Case insensitive 'starts_with' search on Reply-To email address",
95 "name": "return_path_email",
97 "description": "Case insensitive 'starts_with' search on Return-Path email address",
104 "description": "Case insensitive 'starts_with' search on website URL",
111 "description": "Case insensitive 'starts_with' search on IP address",
118 "description": "Case insensitive 'starts_with' search on notes",
125 "description": "Case insensitive 'starts-with' search on OPAC info",
135 "description": "A list of libraries",
139 "$ref": "../definitions.json#/library"
144 "description": "Internal error",
146 "$ref": "../definitions.json#/error"
150 "description": "Under maintenance",
152 "$ref": "../definitions.json#/error"
156 "x-koha-authorization": {
163 "x-mojo-to": "Library#add",
164 "operationId": "addLibrary",
172 "description": "A JSON object containing informations about the new library",
175 "$ref": "../definitions.json#/library"
184 "description": "Library added",
186 "$ref": "../definitions.json#/library"
190 "description": "Bad request",
192 "$ref": "../definitions.json#/error"
196 "description": "Authentication required",
198 "$ref": "../definitions.json#/error"
202 "description": "Access forbidden",
204 "$ref": "../definitions.json#/error"
208 "description": "Conflict in creating resource",
210 "$ref": "../definitions.json#/error"
214 "description": "Internal error",
216 "$ref": "../definitions.json#/error"
220 "description": "Under maintenance",
222 "$ref": "../definitions.json#/error"
226 "x-koha-authorization": {
228 "parameters": "manage_libraries"
233 "/libraries/{library_id}": {
235 "x-mojo-to": "Library#get",
236 "operationId": "getLibrary",
242 "$ref": "../parameters.json#/library_id_pp"
250 "description": "A library",
252 "$ref": "../definitions.json#/library"
256 "description": "Library not found",
258 "$ref": "../definitions.json#/error"
262 "x-koha-authorization": {
269 "x-mojo-to": "Library#update",
270 "operationId": "updateLibrary",
276 "$ref": "../parameters.json#/library_id_pp"
281 "description": "A JSON object containing information on the library",
284 "$ref": "../definitions.json#/library"
296 "description": "A library",
298 "$ref": "../definitions.json#/library"
302 "description": "Bad request",
304 "$ref": "../definitions.json#/error"
308 "description": "Authentication required",
310 "$ref": "../definitions.json#/error"
314 "description": "Access forbidden",
316 "$ref": "../definitions.json#/error"
320 "description": "Library not found",
322 "$ref": "../definitions.json#/error"
326 "description": "Internal error",
328 "$ref": "../definitions.json#/error"
332 "description": "Under maintenance",
334 "$ref": "../definitions.json#/error"
338 "x-koha-authorization": {
340 "parameters": "manage_libraries"
345 "x-mojo-to": "Library#delete",
346 "operationId": "deleteLibrary",
352 "$ref": "../parameters.json#/library_id_pp"
360 "description": "Library deleted",
366 "description": "Authentication required",
368 "$ref": "../definitions.json#/error"
372 "description": "Access forbidden",
374 "$ref": "../definitions.json#/error"
378 "description": "Library not found",
380 "$ref": "../definitions.json#/error"
384 "description": "Internal error",
386 "$ref": "../definitions.json#/error"
390 "description": "Under maintenance",
392 "$ref": "../definitions.json#/error"
396 "x-koha-authorization": {
398 "parameters": "manage_libraries"