]> git.koha-community.org Git - koha.git/commit
Bug 36641: Add endpoint for fetching circulation rules
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 18 Apr 2024 12:45:55 +0000 (13:45 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 18 Jul 2024 16:25:43 +0000 (18:25 +0200)
commit529c483a24c837db0fdbcaac3483b68cacd45344
treefde88ab7fedae1387af44362f7c1e1fcca03644c
parent3853f0ea7770efea1488b683db052cbc4f1952d4
Bug 36641: Add endpoint for fetching circulation rules

This patch adds an endpoint for fetching ciruclations rules given the
constraints of the passed parameters.

We optionally expect item_type, library and patron_category as query
parameters and we return a list of relevant circulation rules pertaining
to that combination of requirements.

You can also add a list of `rules` as a query parameter to limit the
response to only the rules you are interested in for this combination.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/REST/V1/CirculationRules.pm
api/v1/swagger/definitions/circ-rule-kind.yaml
api/v1/swagger/paths/circulation-rules.yaml [deleted file]
api/v1/swagger/paths/circulation_rules.yaml [new file with mode: 0644]
api/v1/swagger/swagger.yaml