[Koha-bugs] [Bug 31160] Required fields in the Patrons API are a bit random
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 9 11:47:43 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31160
Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #144313|0 |1
is obsolete| |
--- Comment #7 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 144525
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144525&action=edit
Bug 31160: Required fields in patron api
The Patron API PUT request required the fields
"surname","address","city","library_id","category_id". Meanwhile the CSV import
page for patrons only requires "surname","library_id","category_id". The fields
for "address" and "city" have been removed from the "required" section of the
api>v1>swagger>definitions>patron.yaml file to match the CSV import page.
Test Plan:
1) Send a PUT request to http://localhost:8081/api/v1/patrons/19 with an empty
body
2) Error message should ask for 5 missing fields as listed above
3) Apply patch
4) Restart Apache server using "restart_all" in your ktd shell
5) Resubmit your request
6) Error message should now only request "surname","library_id","category_id"
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list