| Summary: | REST API route to list system preferences | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
| Component: | REST API | Assignee: | Jonathan Druart <jonathan.druart> |
| Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | tomascohen |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | Small patch |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
| Bug Depends on: | 41834 | ||
| Bug Blocks: | 41995 | ||
| Attachments: |
Bug 41994: Implement /sysprefs route to list system preferences
Bug 41994: Implement /sysprefs route to list system preferences |
||
|
Description
Jonathan Druart
2026-03-05 10:33:39 UTC
Created attachment 194491 [details] [review] Bug 41994: Implement /sysprefs route to list system preferences This new route will be used in a follow-up bug to auto-complete sysprefs when using the header to search for sysprefs. Note that this is based on top of bug 41834 that NULL options, explanation and type in DB, but a future enhancement will populate the response to return the values present in the yaml files. Test plan: 1. Bundle the swagger specs and reload plack: yarn api:bundle && koha-plack --reload kohadev 2. Fetch the sysprefs using the new route: curl -u koha:koha --request GET 'http://${INSTANCE}-intra.localhost/api/v1/sysprefs' --header "Content-Type: application/json" | jq 3. Confirm that the tests pass prove t/db_dependent/api/v1/sysprefs.t Created attachment 194496 [details] [review] Bug 41994: Implement /sysprefs route to list system preferences This new route will be used in a follow-up bug to auto-complete sysprefs when using the header to search for sysprefs. Note that this is based on top of bug 41834 that NULL options, explanation and type in DB, but a future enhancement will populate the response to return the values present in the yaml files. Test plan: 1. Bundle the swagger specs and reload plack: yarn api:bundle && koha-plack --reload kohadev 2. Fetch the sysprefs using the new route: curl -u koha:koha --request GET 'http://${INSTANCE}-intra.localhost/api/v1/sysprefs' --header "Content-Type: application/json" | jq 3. Confirm that the tests pass prove t/db_dependent/api/v1/sysprefs.t Signed-off-by: Owen Leonard <oleonard@myacpl.org> |