Koha-clms/Koha/REST/V1
Tomas Cohen Arazi 900f6b2ce0 Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType
This patch adds tests for the different cases of `BranchTransferLimitsType`.
It also adds tests for the situation of the consumer sending both limit
criterias on the request.

The controller gets adjusted for this new behavior and the spec gets
documentation added about this.

Bonus: tests are added the right guidelines code, and
BranchTransferLimitsType gets mocked to avoid failures due to existing
data.

To test:
1. Apply this patches
2. Run:
   $ ktd --shell
  k$ qa
=> SUCCESS: All green, and tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Fixed a typo in one of the return messages

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e846641edd)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f39baa0b98)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-05-13 14:40:58 +00:00
..
Acquisitions Bug 36066: (follow-up) Move 403 to 409 when status ne cancelled 2024-03-19 21:21:31 +00:00
Auth Bug 34893: Add checkpw change to REST API 2024-01-24 17:33:44 +00:00
Biblios Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
CashRegisters Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Clubs Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Config/SMTP Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
ERM Bug 34339: (QA follow-up) Replace new by search in Licenses 2023-09-08 09:40:16 -10:00
OAuth Bug 34271: Remove a few Logger statements from REST API 2023-10-24 21:31:04 -10:00
Patrons Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
AdvancedEditorMacro.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
ArticleRequests.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Auth.pm Bug 34999: Throw exception for public routes if OPACMaintenance is enabled 2024-02-02 16:22:25 +00:00
AuthorisedValueCategories.pm Bug 32997: Add REST API endpoint to list authorised values for multiple given categories 2023-03-02 12:00:15 -03:00
AuthorisedValues.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Authorities.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
BackgroundJobs.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Biblios.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Checkouts.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
CirculationRules.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Cities.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
ERM.pm Bug 33606: (QA follow-up) Cosmetic changes 2023-11-02 11:17:31 -10:00
Holds.pm Bug 35053: Make sure request is checked as an item-level request if item_id passed 2023-10-25 11:46:43 -10:00
Illbackends.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Illrequests.pm Bug 22440: Add Koha::Illrequests->filter_by_visible 2023-05-05 09:13:40 -03:00
ImportBatchProfiles.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
ImportRecordMatches.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
ItemTypes.pm Bug 34008: (QA follow-up) 'item_type_id' should be used 2023-11-07 22:41:49 -10:00
Items.pm Bug 35963: Fix bundled items table ordering and filtering 2024-03-19 15:29:43 +00:00
Libraries.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
OAuth.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Patrons.pm Bug 29510: (follow-up) Adapt GET /patrons/:patron_id 2024-02-21 21:49:11 +00:00
Quotes.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
ReturnClaims.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
SearchFilter.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Stage.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
Static.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Suggestions.pm Bug 32942: (QA follow-up) Moving Suggestion->STATUS check to Suggestion::store 2023-09-20 20:01:17 -10:00
Tickets.pm Bug 33556: Avoid relying on $c->validation 2023-08-07 20:05:46 -10:00
TransferLimits.pm Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType 2024-05-13 14:40:58 +00:00
TwoFactorAuth.pm Bug 30843: Add mfa_range configuration option for TOTP 2023-10-05 08:36:20 -10:00