[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
Tue Nov 29 11:45:28 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31160

--- Comment #6 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 144313
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144313&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>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list