[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
Mon Nov 28 23:17:11 CET 2022


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #144218|0                           |1
        is obsolete|                            |

--- Comment #4 from David Nind <david at davidnind.com> ---
Created attachment 144308
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144308&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