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

--- Comment #37 from David Cook <[email protected]> ---
(In reply to David Cook from comment #36)
> But the more I think about it... yeah this still feels wrong. Sending
> "Content-Type: application/xml" and getting back "application/json"
> automatically? That's weird. If you had "Accept: application/json" that's
> another story...  that could be a compelling case for an automatic
> conversion.

Ah wait... looking at Koha/REST/V1.pm it translates the JSON automatically to
XML if the Content-Type was application/xml... 

But wouldn't it make more sense to look at "produces" from the Swagger/OpenAPI
spec? And look at what the Accept header has?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to