]> git.koha-community.org Git - koha.git/commit
Bug 35744: Implement +strings for GET /patrons/:patron_id
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Jan 2024 12:14:55 +0000 (13:14 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 1 Feb 2024 14:41:21 +0000 (15:41 +0100)
commitf9be00361c0ebc649aace0f7b9d422a07db754e6
treedcbbfa7670cd89fde04c7956bed98a3040b7b724
parent4c38b7140aa7b33d170ee84be17c890b811b6ca1
Bug 35744: Implement +strings for GET /patrons/:patron_id

In order to retrieve the library's name and patron category's
description alongwith other patron's info.

Test plan:
Run the following command before and after this patch:

% curl -u koha:koha --request GET 'http://localhost:8081/api/v1/patrons/42' --header "Content-Type: application/json" --header "x-koha-embed: +strings" | jq

Notice that you now have _strings which contains the library's name and
patron category's description

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5464d1109986d9d082494910f4db5dc7228b5800)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patron.pm
api/v1/swagger/definitions/patron.yaml
api/v1/swagger/paths/patrons.yaml
t/db_dependent/api/v1/patrons.t