[Koha-bugs] [Bug 32981] Add REST API endpoint to list authorised values for a given category

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 17 14:03:22 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32981

Pedro Amorim <pedro.amorim at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #146730|0                           |1
        is obsolete|                            |

--- Comment #3 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 146842
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146842&action=edit
Bug 32981: Add endpoint to get AV for given category

For, at least, the ERM module we would like to retrieve the authorised
values for a given category to build a dropdown list with the different
options.

It has been decided on bug 17390 to use
GET /authorised_value_categories/:authorised_value_category_id/values

Test plan:
curl -v -s -u koha:koha --request GET 
http://kohadev-intra.mydnsname.org:8081/api/v1/authorised_value_categories/LOC/values
Should display the list of LOC

curl -v -s -u koha:koha --request GET 
http://kohadev-intra.mydnsname.org:8081/api/v1/authorised_value_categories/xLOCx/values
Should return a 404

Signed-off-by: Pedro Amorim <pedro.amorim at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list