Bug 32997: Add REST API endpoint to list authorised values for multiple given categories
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Mon, 20 Feb 2023 16:17:41 +0000 (16:17 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 2 Mar 2023 15:00:15 +0000 (12:00 -0300)
commitbbc0e8fe32cb5e1b5bf752732428ce2f9ebbb840
treed818394b6843626637906e43550b80d5803173d2
parent23ab22b0da6b2e16feca3b39dd570503c377cafd
Bug 32997: Add REST API endpoint to list authorised values for multiple given categories

This patch adds /api/v1/authorised_value_categories endpoint that
retrieves authorised value categories for the given names and their
authorised values if x-koha-embed: authorised_values is also given.

To test:
Apply patch
curl -u koha:koha --request GET \"http://localhost:8081/api/v1/authorised_value_categories?q=%7B%22me.category_name%22%3A%5B%22LOC%22%2C%22YES_NO%22%5D%7D\" --header \"x-koha-embed:authorised_values\"

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/AuthorisedValueCategory.pm
Koha/REST/V1/AuthorisedValueCategories.pm [new file with mode: 0644]
api/v1/swagger/definitions/authorised_value_category.yaml [new file with mode: 0644]
api/v1/swagger/paths/authorised_value_categories.yaml [new file with mode: 0644]
api/v1/swagger/swagger.yaml