Koha-clms/api/v1/swagger/definitions
Emmi Takkinen 310d19e6b3 Bug 37021: Change item_id type as integer in holds endpoint
When one makes a GET call to holds endpoint and hold has
item attached to it, item_id is handled as string not integer
as it should.

To reproduce:
1. Make sure you have hold waiting in your database.
2. Call endpoint api/v1/holds/?q=[{"me.status":"W"}].
=> Note that holds item_id is displayed as item_id: "12345".
3. Apply this patch.
4. Call endpoint again.
=> item_id should now be displayed as 12345.

Also prove t/db_dependent/api/v1/holds.t.

Signed-off-by: Jan Kissig <jkissig@th-wildau.de>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 20e0c056c6)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-07-10 16:54:54 +00:00
..
account_line.yaml
…
advancededitormacro.yaml
…
allows_renewal.yaml
…
authorised_value.yaml
…
authorised_value_category.yaml
…
basket.yaml
…
booking.yaml
…
bundle_link.yaml
…
cash_register.yaml
…
cashup.yaml
…
checkout.yaml
…
checkout_availability.yaml
…
checkouts.yaml
…
circ-rule-kind.yaml
…
city.yaml
…
club_hold.yaml
…
club_hold_patron_hold.yaml
…
club_hold_patron_holds.yaml
…
club_holds.yaml
…
credit.yaml
…
debit.yaml
…
desk.yaml
…
edifact_file.yaml
…
erm_agreement.yaml
…
erm_agreement_license.yaml
…
erm_agreement_period.yaml
…
erm_agreement_relationship.yaml
…
erm_config.yaml
…
erm_counter_file.yaml
…
erm_counter_log.yaml
…
erm_counter_registry.yaml
…
erm_custom_report.yaml
…
erm_default_usage_report.yaml
…
erm_document.yaml
…
erm_eholdings_package.yaml
…
erm_eholdings_package_agreement.yaml
…
erm_eholdings_resource.yaml
…
erm_eholdings_title.yaml
…
erm_license.yaml
…
erm_license_agreement.yaml
…
erm_sushi_service.yaml
…
erm_usage_data_provider.yaml
…
erm_usage_database.yaml
…
erm_usage_item.yaml
…
erm_usage_mus.yaml
…
erm_usage_platform.yaml
…
erm_usage_title.yaml
…
erm_usage_yus.yaml
…
erm_user_role.yaml
…
error.yaml
…
fund.yaml
…
hold.yaml
…
holds.yaml
…
identity_provider.yaml
…
identity_provider_domain.yaml
…
ill_backend.yaml
…
ill_backends.yaml
…
ill_batch.yaml
…
ill_batches.yaml
…
ill_batchstatus.yaml
…
ill_batchstatuses.yaml
…
ill_request.yaml
…
ill_status.yaml
…
import_batch_profile.yaml
…
import_batch_profiles.yaml
…
import_record_match.yaml
…
invoice.yaml
…
item.yaml
…
item_group.yaml
…
item_type.yaml
…
item_type_translated_description.yaml
…
job.yaml
…
library.yaml
…
merge_biblios.yaml
…
order.yaml
…
patron.yaml
…
patron_account_credit.yaml
…
patron_balance.yaml
…
patron_category.yaml
…
patron_extended_attribute.yaml
…
preservation_config.yaml
…
preservation_processing.yaml
…
preservation_processing_attribute.yaml
…
preservation_train.yaml
…
preservation_train_item.yaml
…
quote.yaml
…
recall.yaml
…
recalls.yaml
…
record_source.yaml
…
renewal.yaml
…
renewals.yaml
…
return_claim.yaml
…
search_filter.yaml
…
smtp_server.yaml
…
suggestion.yaml
…
ticket.yaml
…
ticket_update.yaml
…
transfer_limit.yaml
…
vendor.yaml
…
vendor_alias.yaml
…
vendor_issue.yaml
…