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.

But I'm sure Jonathan has implemented PATCH on the ERM, and those
controllers look exactly the same as those for PUT.

That said, I think we could just implement PATCH on the spec, pointing to
the same controllers (for now) on an as-needed basis.

Beware validation of combined parameters, etc.

Good luck!

El mié, 20 mar 2024 a las 11:03, Fridolin SOMERS via Koha-devel (<
koha-devel@lists.koha-community.org>) escribió:

> 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 <fridolin.som...@biblibre.com>
> Software and system maintainer 🦄
> BibLibre, France
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : https://www.koha-community.org/
> git : https://git.koha-community.org/
> bugs : https://bugs.koha-community.org/
>


-- 
Tomás Cohen Arazi
Theke Solutions (https://theke.io)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/

Reply via email to