4 x-mojo-to: Libraries#list
5 operationId: listLibraries
8 summary: List libraries
12 description: Case insensitive 'starts-with' search on name
17 description: Case insensitive 'starts-with' search on address1
22 description: Case insensitive 'starts-with' search on address2
27 description: Case insensitive 'starts-with' search on address3
32 description: Case insensitive 'starts-with' search on postal code
37 description: Case insensitive 'starts-with' search on city
42 description: Case insensitive 'starts-with' search on state
47 description: Case insensitive 'starts_with' search on country
52 description: Case insensitive 'starts_with' search on phone number
57 description: Case insensitive 'starts_with' search on fax number
62 description: Case insensitive 'starts_with' search on email address
65 - name: reply_to_email
67 description: Case insensitive 'starts_with' search on Reply-To email address
70 - name: return_path_email
72 description: Case insensitive 'starts_with' search on Return-Path email address
77 description: Case insensitive 'starts_with' search on website URL
82 description: Case insensitive 'starts_with' search on IP address
87 description: Case insensitive 'starts_with' search on notes
90 - $ref: "../swagger.yaml#/parameters/match"
91 - $ref: "../swagger.yaml#/parameters/order_by"
92 - $ref: "../swagger.yaml#/parameters/page"
93 - $ref: "../swagger.yaml#/parameters/per_page"
94 - $ref: "../swagger.yaml#/parameters/q_param"
95 - $ref: "../swagger.yaml#/parameters/q_body"
96 - $ref: "../swagger.yaml#/parameters/request_id_header"
100 description: Embed list sent as a request header
106 collectionFormat: csv
111 description: A list of libraries
115 $ref: "../swagger.yaml#/definitions/library"
118 Internal server error. Possible `error_code` attribute values:
120 * `internal_server_error`
122 $ref: "../swagger.yaml#/definitions/error"
124 description: Under maintenance
126 $ref: "../swagger.yaml#/definitions/error"
127 x-koha-authorization:
131 x-mojo-to: Libraries#add
132 operationId: addLibrary
139 description: A JSON object containing informations about the new library
142 $ref: "../swagger.yaml#/definitions/library"
147 description: Library added
149 $ref: "../swagger.yaml#/definitions/library"
151 description: Bad request
153 $ref: "../swagger.yaml#/definitions/error"
155 description: Authentication required
157 $ref: "../swagger.yaml#/definitions/error"
159 description: Access forbidden
161 $ref: "../swagger.yaml#/definitions/error"
163 description: Conflict in creating resource
165 $ref: "../swagger.yaml#/definitions/error"
168 Internal server error. Possible `error_code` attribute values:
170 * `internal_server_error`
172 $ref: "../swagger.yaml#/definitions/error"
174 description: Under maintenance
176 $ref: "../swagger.yaml#/definitions/error"
177 x-koha-authorization:
179 parameters: manage_libraries
180 "/libraries/{library_id}":
182 x-mojo-to: Libraries#get
183 operationId: getLibrary
188 - $ref: "../swagger.yaml#/parameters/library_id_pp"
192 description: Embed list sent as a request header
198 collectionFormat: csv
203 description: A library
205 $ref: "../swagger.yaml#/definitions/library"
207 description: Library not found
209 $ref: "../swagger.yaml#/definitions/error"
210 x-koha-authorization:
214 x-mojo-to: Libraries#update
215 operationId: updateLibrary
218 summary: Update library
220 - $ref: "../swagger.yaml#/parameters/library_id_pp"
223 description: A JSON object containing information on the library
226 $ref: "../swagger.yaml#/definitions/library"
233 description: A library
235 $ref: "../swagger.yaml#/definitions/library"
237 description: Bad request
239 $ref: "../swagger.yaml#/definitions/error"
241 description: Authentication required
243 $ref: "../swagger.yaml#/definitions/error"
245 description: Access forbidden
247 $ref: "../swagger.yaml#/definitions/error"
249 description: Library not found
251 $ref: "../swagger.yaml#/definitions/error"
254 Internal server error. Possible `error_code` attribute values:
256 * `internal_server_error`
258 $ref: "../swagger.yaml#/definitions/error"
260 description: Under maintenance
262 $ref: "../swagger.yaml#/definitions/error"
263 x-koha-authorization:
265 parameters: manage_libraries
267 x-mojo-to: Libraries#delete
268 operationId: deleteLibrary
271 summary: Delete library
273 - $ref: "../swagger.yaml#/parameters/library_id_pp"
278 description: Library deleted
282 description: Authentication required
284 $ref: "../swagger.yaml#/definitions/error"
286 description: Access forbidden
288 $ref: "../swagger.yaml#/definitions/error"
290 description: Library not found
292 $ref: "../swagger.yaml#/definitions/error"
295 Internal server error. Possible `error_code` attribute values:
297 * `internal_server_error`
299 $ref: "../swagger.yaml#/definitions/error"
301 description: Under maintenance
303 $ref: "../swagger.yaml#/definitions/error"
304 x-koha-authorization:
306 parameters: manage_libraries
307 "/libraries/{library_id}/desks":
309 x-mojo-to: Libraries#list_desks
310 operationId: listLibraryDesks
313 summary: List the library's desks
315 - $ref: "../swagger.yaml#/parameters/match"
316 - $ref: "../swagger.yaml#/parameters/order_by"
317 - $ref: "../swagger.yaml#/parameters/page"
318 - $ref: "../swagger.yaml#/parameters/per_page"
319 - $ref: "../swagger.yaml#/parameters/q_param"
320 - $ref: "../swagger.yaml#/parameters/q_body"
321 - $ref: "../swagger.yaml#/parameters/request_id_header"
326 description: A list of desks for the library
330 $ref: "../swagger.yaml#/definitions/desk"
332 description: Resource not found
334 $ref: "../swagger.yaml#/definitions/error"
337 Internal server error. Possible `error_code` attribute values:
339 * `internal_server_error`
341 $ref: "../swagger.yaml#/definitions/error"
343 description: Under maintenance
345 $ref: "../swagger.yaml#/definitions/error"
346 x-koha-authorization:
349 "/libraries/{library_id}/cash_registers":
351 x-mojo-to: Libraries#list_cash_registers
352 operationId: listLibraryCashRegisters
355 summary: List the library's cash registers
357 - $ref: "../swagger.yaml#/parameters/match"
358 - $ref: "../swagger.yaml#/parameters/order_by"
359 - $ref: "../swagger.yaml#/parameters/page"
360 - $ref: "../swagger.yaml#/parameters/per_page"
361 - $ref: "../swagger.yaml#/parameters/q_param"
362 - $ref: "../swagger.yaml#/parameters/q_body"
363 - $ref: "../swagger.yaml#/parameters/request_id_header"
368 description: A list of desks for the library
372 $ref: "../swagger.yaml#/definitions/cash_register"
374 description: Resource not found
376 $ref: "../swagger.yaml#/definitions/error"
379 Internal server error. Possible `error_code` attribute values:
381 * `internal_server_error`
383 $ref: "../swagger.yaml#/definitions/error"
385 description: Under maintenance
387 $ref: "../swagger.yaml#/definitions/error"
388 x-koha-authorization:
393 x-mojo-to: Libraries#list
394 operationId: listLibrariesPublic
397 summary: List libraries
399 - $ref: "../swagger.yaml#/parameters/match"
400 - $ref: "../swagger.yaml#/parameters/order_by"
401 - $ref: "../swagger.yaml#/parameters/page"
402 - $ref: "../swagger.yaml#/parameters/per_page"
403 - $ref: "../swagger.yaml#/parameters/q_param"
404 - $ref: "../swagger.yaml#/parameters/q_body"
405 - $ref: "../swagger.yaml#/parameters/request_id_header"
410 description: A list of libraries
414 $ref: "../swagger.yaml#/definitions/library"
417 Internal server error. Possible `error_code` attribute values:
419 * `internal_server_error`
421 $ref: "../swagger.yaml#/definitions/error"
423 description: Under maintenance
425 $ref: "../swagger.yaml#/definitions/error"
426 "/public/libraries/{library_id}":
428 x-mojo-to: Libraries#get
429 operationId: getLibraryPublic
432 summary: Get library (public)
434 - $ref: "../swagger.yaml#/parameters/library_id_pp"
439 description: A library
441 description: Authentication required
443 $ref: "../swagger.yaml#/definitions/error"
445 description: Access forbidden
447 $ref: "../swagger.yaml#/definitions/error"
449 description: Library not found
451 $ref: "../swagger.yaml#/definitions/error"
453 description: Not acceptable
456 description: Accepted content-types
461 Internal server error. Possible `error_code` attribute values:
463 * `internal_server_error`
465 $ref: "../swagger.yaml#/definitions/error"
467 description: Under maintenance
469 $ref: "../swagger.yaml#/definitions/error"