[Koha-bugs] [Bug 17428] REST api: CRUD endpoint for cities

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 24 18:08:37 CEST 2016


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

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #56803|0                           |1
        is obsolete|                            |

--- Comment #43 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 56810
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56810&action=edit
Bug 17428: [REST] best practice followup

This followup alters a few area's to be aligned more closely with
RESTfull best practices:

* PUT should always be full objects, and not partial updates (use PATCH
  for partials)
* Validate query parameters instead of blindly passing them to the model
  * Functional Change: Convert filter params from 'equality' to 'starts with'
    matching
* Update tests to check for swagger validation errors instead of koha
exceptions
* Mark 'id' as readOnly so swagger may prevent, via validation, id
  changes.

Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list