4 "x-mojo-to": "Libraries#list",
5 "operationId": "listLibraries",
9 "summary": "List libraries",
14 "description": "Case insensitive 'starts-with' search on name",
21 "description": "Case insensitive 'starts-with' search on address1",
28 "description": "Case insensitive 'starts-with' search on address2",
35 "description": "Case insensitive 'starts-with' search on address3",
40 "name": "postal_code",
42 "description": "Case insensitive 'starts-with' search on postal code",
49 "description": "Case insensitive 'starts-with' search on city",
56 "description": "Case insensitive 'starts-with' search on state",
63 "description": "Case insensitive 'starts_with' search on country",
70 "description": "Case insensitive 'starts_with' search on phone number",
77 "description": "Case insensitive 'starts_with' search on fax number",
84 "description": "Case insensitive 'starts_with' search on email address",
89 "name": "reply_to_email",
91 "description": "Case insensitive 'starts_with' search on Reply-To email address",
96 "name": "return_path_email",
98 "description": "Case insensitive 'starts_with' search on Return-Path email address",
105 "description": "Case insensitive 'starts_with' search on website URL",
112 "description": "Case insensitive 'starts_with' search on IP address",
119 "description": "Case insensitive 'starts_with' search on notes",
126 "description": "Case insensitive 'starts-with' search on OPAC info",
131 "$ref": "../parameters.json#/match"
134 "$ref": "../parameters.json#/order_by"
137 "$ref": "../parameters.json#/page"
140 "$ref": "../parameters.json#/per_page"
143 "$ref": "../parameters.json#/q_param"
146 "$ref": "../parameters.json#/q_body"
149 "$ref": "../parameters.json#/q_header"
157 "description": "A list of libraries",
161 "$ref": "../definitions.json#/library"
166 "description": "Internal error",
168 "$ref": "../definitions.json#/error"
172 "description": "Under maintenance",
174 "$ref": "../definitions.json#/error"
178 "x-koha-authorization": {
188 "x-mojo-to": "Libraries#add",
189 "operationId": "addLibrary",
193 "summary": "Add library",
198 "description": "A JSON object containing informations about the new library",
201 "$ref": "../definitions.json#/library"
210 "description": "Library added",
212 "$ref": "../definitions.json#/library"
216 "description": "Bad request",
218 "$ref": "../definitions.json#/error"
222 "description": "Authentication required",
224 "$ref": "../definitions.json#/error"
228 "description": "Access forbidden",
230 "$ref": "../definitions.json#/error"
234 "description": "Conflict in creating resource",
236 "$ref": "../definitions.json#/error"
240 "description": "Internal error",
242 "$ref": "../definitions.json#/error"
246 "description": "Under maintenance",
248 "$ref": "../definitions.json#/error"
252 "x-koha-authorization": {
254 "parameters": "manage_libraries"
259 "/libraries/{library_id}": {
261 "x-mojo-to": "Libraries#get",
262 "operationId": "getLibrary",
266 "summary": "Get library",
269 "$ref": "../parameters.json#/library_id_pp"
277 "description": "A library",
279 "$ref": "../definitions.json#/library"
283 "description": "Library not found",
285 "$ref": "../definitions.json#/error"
289 "x-koha-authorization": {
299 "x-mojo-to": "Libraries#update",
300 "operationId": "updateLibrary",
304 "summary": "Update library",
307 "$ref": "../parameters.json#/library_id_pp"
312 "description": "A JSON object containing information on the library",
315 "$ref": "../definitions.json#/library"
327 "description": "A library",
329 "$ref": "../definitions.json#/library"
333 "description": "Bad request",
335 "$ref": "../definitions.json#/error"
339 "description": "Authentication required",
341 "$ref": "../definitions.json#/error"
345 "description": "Access forbidden",
347 "$ref": "../definitions.json#/error"
351 "description": "Library not found",
353 "$ref": "../definitions.json#/error"
357 "description": "Internal error",
359 "$ref": "../definitions.json#/error"
363 "description": "Under maintenance",
365 "$ref": "../definitions.json#/error"
369 "x-koha-authorization": {
371 "parameters": "manage_libraries"
376 "x-mojo-to": "Libraries#delete",
377 "operationId": "deleteLibrary",
381 "summary": "Delete library",
384 "$ref": "../parameters.json#/library_id_pp"
392 "description": "Library deleted",
398 "description": "Authentication required",
400 "$ref": "../definitions.json#/error"
404 "description": "Access forbidden",
406 "$ref": "../definitions.json#/error"
410 "description": "Library not found",
412 "$ref": "../definitions.json#/error"
416 "description": "Internal error",
418 "$ref": "../definitions.json#/error"
422 "description": "Under maintenance",
424 "$ref": "../definitions.json#/error"
428 "x-koha-authorization": {
430 "parameters": "manage_libraries"