Bug 37590

Summary: Allow requesting circulation rule sets using wildcards
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: REST APIAssignee: Martin Renvoize (ashimema) <martin.renvoize>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 36641    
Bug Blocks:    

Description Martin Renvoize (ashimema) 2024-08-07 11:38:14 UTC
The API added for fetching circulation rules in bug 36641 allows for limiting which rules you wish to have returned by passing a comma delimited list of rules names in the ?rules= param.

We could enhance this to allow for wildcards and open up the opportunity for returning sets of related rules based on a common prefix in the rule name.

For example..

`?rules=recalls_*,overdue*` would return all recalls_ and overdue rules without having to specify each of them individually in the query.