]> git.koha-community.org Git - koha.git/commit
Bug 17030: Enable REST api on packages
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 4 Aug 2016 14:39:25 +0000 (11:39 -0300)
committerFrédéric Demians <f.demians@tamil.fr>
Mon, 8 Aug 2016 14:45:24 +0000 (16:45 +0200)
commit0f706677bd4016816f903c740a8ac0e361aa9f78
tree96d4e4516a31a3e509f93bb115a08a49f35c3296
parent0447a6a217f9836e54225f4b6a1fdc13f85409fa
Bug 17030: Enable REST api on packages

This patch enables access to the REST API endpoint on packages setup.
It does so, by patching the shared apache-shared-intranet.conf and
apache-shared-opac.conf.

You can build your own master packages with this patch applied, or just:

- Grab
  debian/templates/apache-shared-intranet.conf
  debian/templates/apache-shared-opac.conf
and overwrite their counterparts in /etc/koha on a packages setup. For example
in kohadevbox.
- Have Koha loaded with all default data
- Create a superlibrarian user for you
- Login to the intranet and the OPAC
- Point your browser to:
  http://localhost:8080/api/v1/patrons/51
=> SUCCESS: You get JSON data, for the patron you requested
  http://localhost:8081/api/v1/patrons/51
=> SUCCESS: You get JSON data, for the patron you requested
- Sign off :-D

Note: I use the HTTPRequester addon for Firefox, re-using the CGISESSID value from the
browser session cookie, in the headers.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 6e38b8b60f118c0721a52fdaa332446063657dd3)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf