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

Jiří Kozlovský <m...@jkozlovsky.cz> changed:

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

--- Comment #4 from Jiří Kozlovský <m...@jkozlovsky.cz> ---
Created attachment 53819
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53819&action=edit
Bug 16497 - REST API: add routes to list libraries

Simple routes to list all or get one Library
GET /api/v1/libraries              - List all libraries
GET /api/v1/libraries/{branchcode} - Get one 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: Lari Taskula <la...@student.uef.fi>
Signed-off-by: Jiří Kozlovský <m...@jkozlovsky.cz>

Works as expected. Nice work! :)

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to