[Koha-bugs] [Bug 16497] Add API routes for libraries

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 15 12:24:06 CET 2019


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #83913|0                           |1
        is obsolete|                            |
  Attachment #83914|0                           |1
        is obsolete|                            |
  Attachment #83915|0                           |1
        is obsolete|                            |
  Attachment #83916|0                           |1
        is obsolete|                            |
  Attachment #83917|0                           |1
        is obsolete|                            |

--- Comment #40 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 83945
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83945&action=edit
Bug 16497: Add /api/v1/libraries

CRUD for libraries via REST API.

GET    /api/v1/libraries              - List all libraries
GET    /api/v1/libraries/{branchcode} - Get one Library
POST   /api/v1/libraries              - Add new Library
DELETE /api/v1/libraries/{branchcode} - Delete Library

Test plan:
  - apply patch
  - run tests: t/db_dependent/api/v1/libraries.t
  - test API with some API tool or simple curl

e.g.:
curl http://host:port/api/v1/libraries
curl http://host:port/api/v1/libraries/cpl

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
Signed-off-by: Benjamin Rokseth <benjamin.rokseth at kul.oslo.kommune.no>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list