[Koha-bugs] [Bug 13607] Patron management API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 22 10:02:29 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13607

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.renvoize at ptfs-europe
                   |                            |.com

--- Comment #4 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Hi Robin,

A much needed feature.. but I'm not 100% I agree with the implementation. I
think we should really be attempting to follow restful best practice.

Personally, I would:

Use POST for the create operation only
Use PUT for the update operation (possibly with your current implementation in
here 'update or create'
use DELETE for the delete operation only
use GET for retrieving patron records
use json (or xml) bodies to actually move the data around..

The above would bring us much more in line with the rest of the modern world. 
Parsing XML is hard in the browser, and such an API should be designed for
maximum flexibility, i.e to be simply used in as many environments as
possible.. including the browser.

Anywho.. If I get the time, I might submit an alternative patch.. if not I'll
go ahead and test this..

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list