Koha/api/v1/swagger/paths.json
Tomas Cohen Arazi bbe424dcfb Bug 27931: Add GET /items/:item_id/pickup_locations
This patch adds the mentioned route. It does so by:
- Adding the new path in paths.json
- Adding the full route spec in items.json
- Adds a controller method that takes care of the task

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/items.t
=> SUCCESS: Tests pass!
3. Play with your favourite REST tool. Pay special care to
   the AllowHoldPolicyOverride syspref and the expected behaviors.
=> SUCCESS: All works as expected
4. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-06-14 17:35:19 +02:00

191 lines
6.7 KiB
JSON

{
"/oauth/token": {
"$ref": "paths/oauth.json#/~1oauth~1token"
},
"/acquisitions/orders": {
"$ref": "paths/acquisitions_orders.json#/~1acquisitions~1orders"
},
"/acquisitions/orders/{order_id}": {
"$ref": "paths/acquisitions_orders.json#/~1acquisitions~1orders~1{order_id}"
},
"/acquisitions/vendors": {
"$ref": "paths/acquisitions_vendors.json#/~1acquisitions~1vendors"
},
"/acquisitions/vendors/{vendor_id}": {
"$ref": "paths/acquisitions_vendors.json#/~1acquisitions~1vendors~1{vendor_id}"
},
"/acquisitions/funds": {
"$ref": "paths/acquisitions_funds.json#/~1acquisitions~1funds"
},
"/biblios/{biblio_id}": {
"$ref": "paths/biblios.json#/~1biblios~1{biblio_id}"
},
"/biblios/{biblio_id}/items": {
"$ref": "paths/biblios.json#/~1biblios~1{biblio_id}~1items"
},
"/biblios/{biblio_id}/pickup_locations": {
"$ref": "paths/biblios.json#/~1biblios~1{biblio_id}~1pickup_locations"
},
"/cash_registers/{cash_register_id}/cashups": {
"$ref": "paths/cash_registers.json#/~1cash_registers~1{cash_register_id}~1cashups"
},
"/cashups/{cashup_id}": {
"$ref": "paths/cash_registers.json#/~1cashups~1{cashup_id}"
},
"/checkouts": {
"$ref": "paths/checkouts.json#/~1checkouts"
},
"/checkouts/{checkout_id}": {
"$ref": "paths/checkouts.json#/~1checkouts~1{checkout_id}"
},
"/checkouts/{checkout_id}/renewal": {
"$ref": "paths/checkouts.json#/~1checkouts~1{checkout_id}~1renewal"
},
"/circulation-rules/kinds": {
"$ref": "paths/circulation-rules.json#/~1circulation-rules~1kinds"
},
"/cities": {
"$ref": "paths/cities.json#/~1cities"
},
"/cities/{city_id}": {
"$ref": "paths/cities.json#/~1cities~1{city_id}"
},
"/clubs/{club_id}/holds": {
"$ref": "paths/clubs.json#/~1clubs~1{club_id}~1holds"
},
"/config/smtp_servers": {
"$ref": "paths/config_smtp_servers.json#/~1config~1smtp_servers"
},
"/config/smtp_servers/{smtp_server_id}": {
"$ref": "paths/config_smtp_servers.json#/~1config~1smtp_servers~1{smtp_server_id}"
},
"/holds": {
"$ref": "paths/holds.json#/~1holds"
},
"/holds/{hold_id}": {
"$ref": "paths/holds.json#/~1holds~1{hold_id}"
},
"/holds/{hold_id}/priority": {
"$ref": "paths/holds.json#/~1holds~1{hold_id}~1priority"
},
"/holds/{hold_id}/suspension": {
"$ref": "paths/holds.json#/~1holds~1{hold_id}~1suspension"
},
"/holds/{hold_id}/pickup_locations": {
"$ref": "paths/holds.json#/~1holds~1{hold_id}~1pickup_locations"
},
"/holds/{hold_id}/pickup_location": {
"$ref": "paths/holds.json#/~1holds~1{hold_id}~1pickup_location"
},
"/items": {
"$ref": "paths/items.json#/~1items"
},
"/items/{item_id}": {
"$ref": "paths/items.json#/~1items~1{item_id}"
},
"/items/{item_id}/pickup_locations": {
"$ref": "paths/items.json#/~1items~1{item_id}~1pickup_locations"
},
"/libraries": {
"$ref": "paths/libraries.json#/~1libraries"
},
"/transfer_limits": {
"$ref": "paths/transfer_limits.yaml#/~1transfer_limits"
},
"/transfer_limits/{limit_id}": {
"$ref": "paths/transfer_limits.yaml#/~1transfer_limits~1{limit_id}"
},
"/transfer_limits/batch": {
"$ref": "paths/transfer_limits.yaml#/~1transfer_limits~1batch"
},
"/libraries/{library_id}": {
"$ref": "paths/libraries.json#/~1libraries~1{library_id}"
},
"/checkouts/{checkout_id}/allows_renewal": {
"$ref": "paths/checkouts.json#/~1checkouts~1{checkout_id}~1allows_renewal"
},
"/advanced_editor/macros": {
"$ref": "paths/advancededitormacros.json#/~1advanced_editor~1macros"
},
"/advanced_editor/macros/{advancededitormacro_id}": {
"$ref": "paths/advancededitormacros.json#/~1advanced_editor~1macros~1{advancededitormacro_id}"
},
"/advanced_editor/macros/shared": {
"$ref": "paths/advancededitormacros.json#/~1advanced_editor~1macros~1shared"
},
"/advanced_editor/macros/shared/{advancededitormacro_id}": {
"$ref": "paths/advancededitormacros.json#/~1advanced_editor~1macros~1shared~1{advancededitormacro_id}"
},
"/patrons": {
"$ref": "paths/patrons.json#/~1patrons"
},
"/patrons/{patron_id}": {
"$ref": "paths/patrons.json#/~1patrons~1{patron_id}"
},
"/patrons/{patron_id}/account": {
"$ref": "paths/patrons_account.json#/~1patrons~1{patron_id}~1account"
},
"/patrons/{patron_id}/account/credits": {
"$ref": "paths/patrons_account.json#/~1patrons~1{patron_id}~1account~1credits"
},
"/patrons/{patron_id}/extended_attributes": {
"$ref": "paths/patrons_extended_attributes.json#/~1patrons~1{patron_id}~1extended_attributes"
},
"/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": {
"$ref": "paths/patrons_extended_attributes.json#/~1patrons~1{patron_id}~1extended_attributes~1{extended_attribute_id}"
},
"/patrons/{patron_id}/holds": {
"$ref": "paths/patrons_holds.json#/~1patrons~1{patron_id}~1holds"
},
"/patrons/{patron_id}/password": {
"$ref": "paths/patrons_password.json#/~1patrons~1{patron_id}~1password"
},
"/ill_backends": {
"$ref": "paths/ill_backends.json#/~1ill_backends"
},
"/ill_backends/{ill_backend_id}": {
"$ref": "paths/ill_backends.json#/~1ill_backends~1{ill_backend_id}"
},
"/illrequests": {
"$ref": "paths/illrequests.json#/~1illrequests"
},
"/import_batch_profiles": {
"$ref": "paths/import_batch_profiles.json#/~1import_batch_profiles"
},
"/import_batch_profiles/{import_batch_profile_id}": {
"$ref": "paths/import_batch_profiles.json#/~1import_batch_profiles~1{import_batch_profile_id}"
},
"/rotas/{rota_id}/stages/{stage_id}/position": {
"$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
},
"/public/biblios/{biblio_id}": {
"$ref": "paths/biblios.json#/~1public~1biblios~1{biblio_id}"
},
"/public/patrons/{patron_id}/password": {
"$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1password"
},
"/public/patrons/{patron_id}/guarantors/can_see_charges": {
"$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_charges"
},
"/public/patrons/{patron_id}/guarantors/can_see_checkouts": {
"$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_checkouts"
},
"/quotes": {
"$ref": "paths/quotes.json#/~1quotes"
},
"/quotes/{quote_id}": {
"$ref": "paths/quotes.json#/~1quotes~1{quote_id}"
},
"/return_claims": {
"$ref": "paths/return_claims.json#/~1return_claims"
},
"/return_claims/{claim_id}/notes": {
"$ref": "paths/return_claims.json#/~1return_claims~1{claim_id}~1notes"
},
"/return_claims/{claim_id}/resolve": {
"$ref": "paths/return_claims.json#/~1return_claims~1{claim_id}~1resolve"
},
"/return_claims/{claim_id}": {
"$ref": "paths/return_claims.json#/~1return_claims~1{claim_id}"
}
}