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> |
||
|---|---|---|
| .. | ||
| acquisitions_funds.json | ||
| acquisitions_orders.json | ||
| acquisitions_vendors.json | ||
| advancededitormacros.json | ||
| biblios.json | ||
| cash_registers.json | ||
| checkouts.json | ||
| circulation-rules.json | ||
| cities.json | ||
| clubs.json | ||
| config_smtp_servers.json | ||
| holds.json | ||
| ill_backends.json | ||
| illrequests.json | ||
| import_batch_profiles.json | ||
| items.json | ||
| libraries.json | ||
| oauth.json | ||
| patrons.json | ||
| patrons_account.json | ||
| patrons_extended_attributes.json | ||
| patrons_holds.json | ||
| patrons_password.json | ||
| public_patrons.json | ||
| quotes.json | ||
| return_claims.json | ||
| rotas.json | ||
| transfer_limits.yaml | ||