]> git.koha-community.org Git - koha.git/commit
Bug 36505: Add support for `extended_attributes` in PUT /patrons/:patron_id
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 8 Apr 2024 13:23:17 +0000 (15:23 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 16:06:15 +0000 (18:06 +0200)
commit466882a6a2eef95ef08b8249f9144ddeabd6b83e
tree87ffd9f2cdbb1df859abba30dca6eea4dea73f6c
parent706246504cbd7af1849292be13cd5a9c264f3919
Bug 36505: Add support for `extended_attributes` in PUT /patrons/:patron_id

This patch does what the title says. With it, you will be able to PUT on
the already existing endpoint, but also pass:

```json
[ { "type": "THE_TYPE", "value": "a" }, ... ]
```

Bonus: to ease testing I added `x-koha-embed: extended_attributes`
support.

To test:
1. Apply the unit tests
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: This is not implemented!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Exhaustive testes pass!
5. Sign off :-D

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/REST/V1/Patrons.pm
api/v1/swagger/paths/patrons.yaml