Koha-clms/api/v1/swagger/paths
Tomas Cohen Arazi 4d011bd998 Bug 23666: Add PATCH /patron/:patron_id/extended_attributes/:extended_attribute_id
This patch adds the described route. It is designed to use the
underlying libraries' methods to update an existing attribute.

The tests cover the use cases.

Note: I added handling for two exceptions that can only occur on bad
data (i.e. not by using our codebase). This are:
- Koha::Exceptions::Patron::Attribute::InvalidType
- Koha::Exceptions::Patron::Attribute::NonRepeatable

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons_extended_attributes.t
=> SUCCESS: Tests pass!
3. PLay with the route
=> SUCCESS: Expected behavior!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-22 14:50:11 +02:00
..
acquisitions_funds.json
…
acquisitions_orders.json Bug 20212: Add more embeddable objects to orders 2021-01-28 16:44:11 +01:00
acquisitions_vendors.json
…
advancededitormacros.json
…
biblios.json Bug 27352: Add GET /biblios/:biblio_id/items 2021-01-29 09:03:45 +01:00
cash_registers.json Bug 26273: (follow-up) Add 'Cashier' to the cashups table 2021-03-11 16:33:25 +01:00
checkouts.json Bug 24083: Add support for unseen_renewals 2020-11-11 16:09:58 +01:00
circulation-rules.json
…
cities.json
…
clubs.json Bug 27330: (QA follow-up) Return 409 instead 2021-02-01 16:36:38 +01:00
config_smtp_servers.json Bug 22343: API routes for SMTP servers CRUD 2020-10-02 10:54:40 +02:00
holds.json Bug 18729: (follow-up) Adjust API to new spec 2021-04-16 16:27:29 +02:00
ill_backends.json
…
illrequests.json
…
import_batch_profiles.json Bug 23019: (follow-up) Fix test permissions and API definition bugs 2020-11-11 15:55:49 +01:00
items.json
…
libraries.json Bug 26595: Embed the whole smtp_server object 2020-10-14 15:53:38 +02:00
oauth.json
…
patrons.json Bug 27855: Add 'extended_attributes' embedding to the spec 2021-03-09 10:31:47 +01:00
patrons_account.json
…
patrons_extended_attributes.json Bug 23666: Add PATCH /patron/:patron_id/extended_attributes/:extended_attribute_id 2021-04-22 14:50:11 +02:00
patrons_holds.json Bug 27366: Spec changes 2021-03-16 16:08:31 +01:00
patrons_password.json
…
public_patrons.json
…
quotes.json Bug 27251: Rewrite QOTD with the Koha REST API 2021-01-29 09:03:45 +01:00
return_claims.json
…
rotas.json
…
transfer_limits.yaml Bug 26633: Add API documentation 2021-03-16 16:08:30 +01:00