]> git.koha-community.org Git - koha.git/commit
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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 3 Mar 2023 12:10:59 +0000 (12:10 +0000)
commitc6b76198dbe06e35bfb6fb67470a14dde87a3901
tree0fc0b16c2ec0d2699537d9d38b55389b18cff1e6
parentf13c84ba77ad5f3b060e1c25c16eb8044f76b1f2
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>
(cherry picked from commit bbc0e8fe32cb5e1b5bf752732428ce2f9ebbb840)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
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