[Koha-bugs] [Bug 26635] New: Expand authorised values in REST API call
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 8 19:18:55 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26635
Bug ID: 26635
Summary: Expand authorised values in REST API call
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: REST API
Assignee: agustinmoyano at theke.io
Reporter: agustinmoyano at theke.io
We need a way to embed expanded authorised values in a REST API call. It's
specially needed when you have to show authorised values descriptions in tables
that are fetched through api.
The proposed solution adds to object's api definition (even embedded content)
the following key: _authorised_values
For each column that contains an authorised value, it will be reflected inside
this property, with the authorised value expanded. So for example if we embed
the authorised values of an item, the result from the API call could look like
this:
GET /api/v1/items/1
{
"_authorised_values": {
"location": {
"authorised_value": "GEN",
"category": "LOC",
"id": 27,
"imageurl": null,
"lib": "General Stacks",
"lib_opac": null
}
},
"acquisition_date": "2014-05-07",
"acquisition_source": null,
"biblio_id": 1,
"item_id": 1,
...
"location": "GEN",
...
"uri": null,
"withdrawn": 0,
"withdrawn_date": null
}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list