Koha/api/v1/swagger/paths
Tomas Cohen Arazi a054c569dd
Bug 31791: Add x-record-source-id header to POST /biblios
This patch adds support for setting the record source on the API. It
does so by adding support for a new header `x-record-source-id`.

Setting the record source is restricted to patrons with the
`set_record_sources` permission.

A 403 error is returned on an attempt to set it without the correct
permissions.

The feature is documented on the spec.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass! Tests cover the right use cases!
3. Play with Postman (or similar)
4. Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-26 20:15:38 +02:00
..
acquisitions_baskets.yaml
acquisitions_edifiles.yaml Bug 30070: EDIFACT and ID are abbreviations 2024-01-17 11:38:59 +01:00
acquisitions_funds.yaml
acquisitions_orders.yaml Bug 36066: (follow-up) Move 403 to 409 when status ne cancelled 2024-03-08 18:58:29 +01:00
acquisitions_vendor_issues.yaml Bug 35634: (bug 33105 follow-up) fix typo issues_manage vs issue_manage 2024-01-11 15:44:46 +01:00
acquisitions_vendors.yaml
advancededitormacros.yaml
article_requests.yaml
auth.yaml
authorised_value_categories.yaml
authorised_values.yaml
authorities.yaml
biblios.yaml Bug 31791: Add x-record-source-id header to POST /biblios 2024-04-26 20:15:38 +02:00
biblios_item_groups.yaml
biblios_merge.yaml Bug 33036: REST API: Merge biblio records implements merging of records 2024-03-18 11:03:39 +01:00
bookings.yaml Bug 36100: (QA follow-up) Move 400 to 409 2024-03-07 16:36:42 +01:00
cash_registers.yaml
checkouts.yaml Bug 35469: Add 'manage_bookings' subpermission to /checkouts 2024-03-07 17:35:39 +01:00
circulation-rules.yaml
cities.yaml
clubs.yaml
config_smtp_servers.yaml
deleted_biblios.yaml Bug 33960: Add routes and controller 2024-04-22 08:57:50 +02:00
erm_agreements.yaml
erm_config.yaml
erm_counter_files.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_counter_logs.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_counter_registries.yaml Bug 34587: Move everything into a ERM/EUsage subfolder 2023-10-31 16:46:18 -03:00
erm_custom_reports.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_default_usage_reports.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_documents.yaml
erm_eholdings_packages.yaml
erm_eholdings_packages_resources.yaml
erm_eholdings_resources.yaml
erm_eholdings_titles.yaml
erm_eholdings_titles_resources.yaml
erm_licenses.yaml
erm_sushi_services.yaml Bug 34587: Fix stray type definition 2023-11-01 15:00:17 -03:00
erm_usage_data_providers.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_usage_databases.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_usage_items.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_usage_platforms.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_usage_titles.yaml Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
erm_users.yaml
holds.yaml Bug 35353: Add REST API endpoint to retrieve old holds 2024-04-26 18:06:09 +02:00
ill_backends.yaml Bug 35581: Koha::Illbackend -> Koha::ILL::Backend 2024-04-22 08:57:40 +02:00
ill_batches.yaml Bug 35581: Koha::*Illbatch* -> Koha::*ILL::*Batch* 2024-04-22 08:57:41 +02:00
ill_batchstatuses.yaml Bug 35581: Illbatchstatus* -> ILL::Batch::Status* 2024-04-22 08:57:42 +02:00
ill_requests.yaml Bug 35581: Koha::REST::V1::Illrequests -> Koha::REST::V1::ILL::Requests 2024-04-22 08:57:46 +02:00
import_batch_profiles.yaml
import_batches.yaml
item_types.yaml Bug 34008: Add REST endpoint for list of itemtypes 2023-11-01 17:23:14 -03:00
items.yaml Bug 29002: (follow-up) Rebase fix, remove q_header 2023-11-03 12:04:15 -03:00
jobs.yaml
libraries.yaml Bug 36482: Allow embedding desks and cash_registers on libraries endpoints 2024-04-26 18:06:11 +02:00
oauth.yaml
patrons.yaml Bug 36505: (follow-up) Consistent error codes in POST 2024-04-26 18:06:16 +02:00
patrons_account.yaml
patrons_extended_attributes.yaml
patrons_holds.yaml Bug 35353: Add REST API endpoint to retrieve old holds 2024-04-26 18:06:09 +02:00
patrons_password.yaml
patrons_recalls.yaml Bug 35967: Add REST API endpoint to list patron recalls 2024-04-19 19:54:43 +02:00
preservation_config.yaml
preservation_processings.yaml
preservation_trains.yaml Bug 33547: Add print slip 2023-10-23 11:33:51 -03:00
preservation_waiting_list.yaml
public_oauth.yaml
public_patrons.yaml Bug 35368: Add public to "Add a new checkout" in API documentation 2024-01-30 17:48:40 +01:00
quotes.yaml
record_sources.yaml Bug 35919: Add /record_sources endpoints 2024-04-26 17:06:03 +02:00
return_claims.yaml
rotas.yaml
search_filters.yaml
suggestions.yaml
tickets.yaml
transfer_limits.yaml Bug 36329: Miscelaneous spec fixes 2024-03-19 10:25:01 +01:00