https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23285 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com --- Comment #11 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Fridolin Somers from comment #10)
I've been discussing this in mailing list koha-devel (REST API : PUT for partial update).
So we do need a PATCH route. It would be very useful to update for example the expiration date.
Is there a way to set required fields outside api/v1/swagger/definitions/patron.yaml so that is can be used in both PATCH,PUT and POST routes ?
The way to do it, implies loosing reusability of the object definitions, which I don't think is a big deal anyway. We would just need to be observant on any attribute changes so they are applied both in patron.yaml and (say) patron_patch.yaml. -- You are receiving this mail because: You are watching all bug changes.