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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/