[Koha-devel] REST API : PUT for partial update

2024-03-20 Thread Fridolin SOMERS via Koha-devel
Hi, I've tried to use API for a PUT on patron. Looks like I can't do a partial update, I get error on mandatory datas like if it where a POST. I found this discussion : https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23285#c8 Is this a bug ? Best regards, -- Fridolin SOMERS

Re: [Koha-devel] REST API : PUT for partial update

2024-03-20 Thread Tomas Cohen Arazi via Koha-devel
When we decided to implement the RESTful API, we agreed PUT is for 'replacing' resources, and PATCH for updating selected pieces of them. I personally never managed to wrap my mind around PATCH and how to validate what tiny bit is allowed to be patched or not. As OpenAPIv2 is not that flexible.