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
107 collectionFormat: csv
112 description: A list of libraries
116 $ref: "../swagger.yaml#/definitions/library"
119 Internal server error. Possible `error_code` attribute values:
121 * `internal_server_error`
123 $ref: "../swagger.yaml#/definitions/error"
125 description: Under maintenance
127 $ref: "../swagger.yaml#/definitions/error"
128 x-koha-authorization:
132 x-mojo-to: Libraries#add
133 operationId: addLibrary
140 description: A JSON object containing informations about the new library
143 $ref: "../swagger.yaml#/definitions/library"
148 description: Library added
150 $ref: "../swagger.yaml#/definitions/library"
152 description: Bad request
154 $ref: "../swagger.yaml#/definitions/error"
156 description: Authentication required
158 $ref: "../swagger.yaml#/definitions/error"
160 description: Access forbidden
162 $ref: "../swagger.yaml#/definitions/error"
164 description: Conflict in creating resource
166 $ref: "../swagger.yaml#/definitions/error"
169 Internal server error. Possible `error_code` attribute values:
171 * `internal_server_error`
173 $ref: "../swagger.yaml#/definitions/error"
175 description: Under maintenance
177 $ref: "../swagger.yaml#/definitions/error"
178 x-koha-authorization:
180 parameters: manage_libraries
181 "/libraries/{library_id}":
183 x-mojo-to: Libraries#get
184 operationId: getLibrary
189 - $ref: "../swagger.yaml#/parameters/library_id_pp"
193 description: Embed list sent as a request header
200 collectionFormat: csv
205 description: A library
207 $ref: "../swagger.yaml#/definitions/library"
209 description: Library not found
211 $ref: "../swagger.yaml#/definitions/error"
212 x-koha-authorization:
216 x-mojo-to: Libraries#update
217 operationId: updateLibrary
220 summary: Update library
222 - $ref: "../swagger.yaml#/parameters/library_id_pp"
225 description: A JSON object containing information on the library
228 $ref: "../swagger.yaml#/definitions/library"
235 description: A library
237 $ref: "../swagger.yaml#/definitions/library"
239 description: Bad request
241 $ref: "../swagger.yaml#/definitions/error"
243 description: Authentication required
245 $ref: "../swagger.yaml#/definitions/error"
247 description: Access forbidden
249 $ref: "../swagger.yaml#/definitions/error"
251 description: Library not found
253 $ref: "../swagger.yaml#/definitions/error"
256 Internal server error. Possible `error_code` attribute values:
258 * `internal_server_error`
260 $ref: "../swagger.yaml#/definitions/error"
262 description: Under maintenance
264 $ref: "../swagger.yaml#/definitions/error"
265 x-koha-authorization:
267 parameters: manage_libraries
269 x-mojo-to: Libraries#delete
270 operationId: deleteLibrary
273 summary: Delete library
275 - $ref: "../swagger.yaml#/parameters/library_id_pp"
280 description: Library deleted
284 description: Authentication required
286 $ref: "../swagger.yaml#/definitions/error"
288 description: Access forbidden
290 $ref: "../swagger.yaml#/definitions/error"
292 description: Library not found
294 $ref: "../swagger.yaml#/definitions/error"
297 Internal server error. Possible `error_code` attribute values:
299 * `internal_server_error`
301 $ref: "../swagger.yaml#/definitions/error"
303 description: Under maintenance
305 $ref: "../swagger.yaml#/definitions/error"
306 x-koha-authorization:
308 parameters: manage_libraries
309 "/libraries/{library_id}/desks":
311 x-mojo-to: Libraries#list_desks
312 operationId: listLibraryDesks
315 summary: List the library's desks
317 - $ref: "../swagger.yaml#/parameters/match"
318 - $ref: "../swagger.yaml#/parameters/order_by"
319 - $ref: "../swagger.yaml#/parameters/page"
320 - $ref: "../swagger.yaml#/parameters/per_page"
321 - $ref: "../swagger.yaml#/parameters/q_param"
322 - $ref: "../swagger.yaml#/parameters/q_body"
323 - $ref: "../swagger.yaml#/parameters/request_id_header"
328 description: A list of desks for the library
332 $ref: "../swagger.yaml#/definitions/desk"
334 description: Resource not found
336 $ref: "../swagger.yaml#/definitions/error"
339 Internal server error. Possible `error_code` attribute values:
341 * `internal_server_error`
343 $ref: "../swagger.yaml#/definitions/error"
345 description: Under maintenance
347 $ref: "../swagger.yaml#/definitions/error"
348 x-koha-authorization:
353 x-mojo-to: Libraries#list
354 operationId: listLibrariesPublic
357 summary: List libraries
359 - $ref: "../swagger.yaml#/parameters/match"
360 - $ref: "../swagger.yaml#/parameters/order_by"
361 - $ref: "../swagger.yaml#/parameters/page"
362 - $ref: "../swagger.yaml#/parameters/per_page"
363 - $ref: "../swagger.yaml#/parameters/q_param"
364 - $ref: "../swagger.yaml#/parameters/q_body"
365 - $ref: "../swagger.yaml#/parameters/request_id_header"
370 description: A list of libraries
374 $ref: "../swagger.yaml#/definitions/library"
377 Internal server error. Possible `error_code` attribute values:
379 * `internal_server_error`
381 $ref: "../swagger.yaml#/definitions/error"
383 description: Under maintenance
385 $ref: "../swagger.yaml#/definitions/error"
386 "/public/libraries/{library_id}":
388 x-mojo-to: Libraries#get
389 operationId: getLibraryPublic
392 summary: Get library (public)
394 - $ref: "../swagger.yaml#/parameters/library_id_pp"
399 description: A library
401 description: Authentication required
403 $ref: "../swagger.yaml#/definitions/error"
405 description: Access forbidden
407 $ref: "../swagger.yaml#/definitions/error"
409 description: Library not found
411 $ref: "../swagger.yaml#/definitions/error"
413 description: Not acceptable
416 description: Accepted content-types
421 Internal server error. Possible `error_code` attribute values:
423 * `internal_server_error`
425 $ref: "../swagger.yaml#/definitions/error"
427 description: Under maintenance
429 $ref: "../swagger.yaml#/definitions/error"