[Koha-bugs] [Bug 17390] Add REST API endpoint for Authorised Values

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 14 11:14:10 CET 2024


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

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

--- Comment #19 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 162138
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162138&action=edit
Bug 17390: Add /authorised_values endpoint

This patch add the different routes for authorised values:
* GET    /authorised_values
* GET    /authorised_values/{authorised_value_id}
* POST   /authorised_values
* PUT    /authorised_values/{authorised_value_id}
* DELETE /authorised_values/{authorised_value_id}

Test plan:
- Make sure the tests in t/db_dependent/api/v1/authorised_values.t pass
- Test the different routes.
For instance:
GET /authorised_values # list all the avs
GET /authorised_values?category=YES_NO # list all the YES_NO avs

POST /authorised_values
    {
       "category": "YES_NO",
        "description": "not sure",
        "opac_description": "something else",
        "value": "maybe"
    }

DELETE /authorised_values/X # with X the AV id of "maybe"

Sponsored-by: Orex Digital

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


More information about the Koha-bugs mailing list