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

--- Comment #2 from Matt Blenkinsop <[email protected]> ---
Created attachment 144218
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144218&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"

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to