]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Jan 2024 11:24:59 +0000 (12:24 +0100)
commit5464d1109986d9d082494910f4db5dc7228b5800
tree8aacafd7c14cb387c49ae07a7f5be0c99ea7057c
parente8c0438d87468d7a5638a3463817aff5c9d75e85
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>
Koha/Patron.pm
api/v1/swagger/definitions/patron.yaml
api/v1/swagger/paths/patrons.yaml
t/db_dependent/api/v1/patrons.t