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>