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
109 collectionFormat: csv
114 description: A list of libraries
118 $ref: "../swagger.yaml#/definitions/library"
121 Internal server error. Possible `error_code` attribute values:
123 * `internal_server_error`
125 $ref: "../swagger.yaml#/definitions/error"
127 description: Under maintenance
129 $ref: "../swagger.yaml#/definitions/error"
130 x-koha-authorization:
134 x-mojo-to: Libraries#add
135 operationId: addLibrary
142 description: A JSON object containing informations about the new library
145 $ref: "../swagger.yaml#/definitions/library"
150 description: Library added
152 $ref: "../swagger.yaml#/definitions/library"
154 description: Bad request
156 $ref: "../swagger.yaml#/definitions/error"
158 description: Authentication required
160 $ref: "../swagger.yaml#/definitions/error"
162 description: Access forbidden
164 $ref: "../swagger.yaml#/definitions/error"
166 description: Conflict in creating resource
168 $ref: "../swagger.yaml#/definitions/error"
171 Internal server error. Possible `error_code` attribute values:
173 * `internal_server_error`
175 $ref: "../swagger.yaml#/definitions/error"
177 description: Under maintenance
179 $ref: "../swagger.yaml#/definitions/error"
180 x-koha-authorization:
182 parameters: manage_libraries
183 "/libraries/{library_id}":
185 x-mojo-to: Libraries#get
186 operationId: getLibrary
191 - $ref: "../swagger.yaml#/parameters/library_id_pp"
195 description: Embed list sent as a request header
204 collectionFormat: csv
209 description: A library
211 $ref: "../swagger.yaml#/definitions/library"
213 description: Library not found
215 $ref: "../swagger.yaml#/definitions/error"
216 x-koha-authorization:
220 x-mojo-to: Libraries#update
221 operationId: updateLibrary
224 summary: Update library
226 - $ref: "../swagger.yaml#/parameters/library_id_pp"
229 description: A JSON object containing information on the library
232 $ref: "../swagger.yaml#/definitions/library"
239 description: A library
241 $ref: "../swagger.yaml#/definitions/library"
243 description: Bad request
245 $ref: "../swagger.yaml#/definitions/error"
247 description: Authentication required
249 $ref: "../swagger.yaml#/definitions/error"
251 description: Access forbidden
253 $ref: "../swagger.yaml#/definitions/error"
255 description: Library not found
257 $ref: "../swagger.yaml#/definitions/error"
260 Internal server error. Possible `error_code` attribute values:
262 * `internal_server_error`
264 $ref: "../swagger.yaml#/definitions/error"
266 description: Under maintenance
268 $ref: "../swagger.yaml#/definitions/error"
269 x-koha-authorization:
271 parameters: manage_libraries
273 x-mojo-to: Libraries#delete
274 operationId: deleteLibrary
277 summary: Delete library
279 - $ref: "../swagger.yaml#/parameters/library_id_pp"
284 description: Library deleted
288 description: Authentication required
290 $ref: "../swagger.yaml#/definitions/error"
292 description: Access forbidden
294 $ref: "../swagger.yaml#/definitions/error"
296 description: Library not found
298 $ref: "../swagger.yaml#/definitions/error"
301 Internal server error. Possible `error_code` attribute values:
303 * `internal_server_error`
305 $ref: "../swagger.yaml#/definitions/error"
307 description: Under maintenance
309 $ref: "../swagger.yaml#/definitions/error"
310 x-koha-authorization:
312 parameters: manage_libraries
313 "/libraries/{library_id}/desks":
315 x-mojo-to: Libraries#list_desks
316 operationId: listLibraryDesks
319 summary: List the library's desks
321 - $ref: "../swagger.yaml#/parameters/match"
322 - $ref: "../swagger.yaml#/parameters/order_by"
323 - $ref: "../swagger.yaml#/parameters/page"
324 - $ref: "../swagger.yaml#/parameters/per_page"
325 - $ref: "../swagger.yaml#/parameters/q_param"
326 - $ref: "../swagger.yaml#/parameters/q_body"
327 - $ref: "../swagger.yaml#/parameters/request_id_header"
332 description: A list of desks for the library
336 $ref: "../swagger.yaml#/definitions/desk"
338 description: Resource not found
340 $ref: "../swagger.yaml#/definitions/error"
343 Internal server error. Possible `error_code` attribute values:
345 * `internal_server_error`
347 $ref: "../swagger.yaml#/definitions/error"
349 description: Under maintenance
351 $ref: "../swagger.yaml#/definitions/error"
352 x-koha-authorization:
355 "/libraries/{library_id}/cash_registers":
357 x-mojo-to: Libraries#list_cash_registers
358 operationId: listLibraryCashRegisters
361 summary: List the library's cash registers
363 - $ref: "../swagger.yaml#/parameters/match"
364 - $ref: "../swagger.yaml#/parameters/order_by"
365 - $ref: "../swagger.yaml#/parameters/page"
366 - $ref: "../swagger.yaml#/parameters/per_page"
367 - $ref: "../swagger.yaml#/parameters/q_param"
368 - $ref: "../swagger.yaml#/parameters/q_body"
369 - $ref: "../swagger.yaml#/parameters/request_id_header"
374 description: A list of desks for the library
378 $ref: "../swagger.yaml#/definitions/cash_register"
380 description: Resource not found
382 $ref: "../swagger.yaml#/definitions/error"
385 Internal server error. Possible `error_code` attribute values:
387 * `internal_server_error`
389 $ref: "../swagger.yaml#/definitions/error"
391 description: Under maintenance
393 $ref: "../swagger.yaml#/definitions/error"
394 x-koha-authorization:
399 x-mojo-to: Libraries#list
400 operationId: listLibrariesPublic
403 summary: List libraries
405 - $ref: "../swagger.yaml#/parameters/match"
406 - $ref: "../swagger.yaml#/parameters/order_by"
407 - $ref: "../swagger.yaml#/parameters/page"
408 - $ref: "../swagger.yaml#/parameters/per_page"
409 - $ref: "../swagger.yaml#/parameters/q_param"
410 - $ref: "../swagger.yaml#/parameters/q_body"
411 - $ref: "../swagger.yaml#/parameters/request_id_header"
416 description: A list of libraries
420 $ref: "../swagger.yaml#/definitions/library"
423 Internal server error. Possible `error_code` attribute values:
425 * `internal_server_error`
427 $ref: "../swagger.yaml#/definitions/error"
429 description: Under maintenance
431 $ref: "../swagger.yaml#/definitions/error"
432 "/public/libraries/{library_id}":
434 x-mojo-to: Libraries#get
435 operationId: getLibraryPublic
438 summary: Get library (public)
440 - $ref: "../swagger.yaml#/parameters/library_id_pp"
445 description: A library
447 description: Authentication required
449 $ref: "../swagger.yaml#/definitions/error"
451 description: Access forbidden
453 $ref: "../swagger.yaml#/definitions/error"
455 description: Library not found
457 $ref: "../swagger.yaml#/definitions/error"
459 description: Not acceptable
462 description: Accepted content-types
467 Internal server error. Possible `error_code` attribute values:
469 * `internal_server_error`
471 $ref: "../swagger.yaml#/definitions/error"
473 description: Under maintenance
475 $ref: "../swagger.yaml#/definitions/error"