[koha-commits] main Koha release repository branch master updated. v3.20.00-1071-g35ecdde
Git repo owner
gitmaster at git.koha-community.org
Wed Nov 4 17:49:16 CET 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via 35ecddec894ad633e26e8802c7c68864e395fca4 (commit)
via f60f35281252887ee4558b092b5857cca5de2bdf (commit)
via d074c77deb19e3a8faebb1dcf05bafaea0616f1e (commit)
via 7fe57de8e28b4fc5691beeffd3d96f6693243925 (commit)
via 2cd6bce4427f6d7b1aba5a7349e0c258bb8762e8 (commit)
via 93a88eaaf6cbe16ea7d319eb1377d865c01c2637 (commit)
via 5533d658018553f2205d4d8836541a3efa6a665b (commit)
via 631694cd96bb3f7e759dc593bd0358a0efaf1304 (commit)
via 63cb4b9d3ed0c2cb8fa7692ddb28019155b0889a (commit)
via b4c6ad6603b712d910a0c872139a371a453eb074 (commit)
via c83cd774117f808aab27ece79fc31c9c44d4fffc (commit)
from 314f3e22d969b05ffd0590153707fd0c673987be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 35ecddec894ad633e26e8802c7c68864e395fca4
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Nov 4 14:29:19 2015 +0100
Bug 13799: Add types for patron's fields in Swagger spec
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit f60f35281252887ee4558b092b5857cca5de2bdf
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Fri Oct 30 08:49:23 2015 +0100
Bug 13799: Rename t/.../v1/borrowers.t to t/.../v1/patrons.t
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit d074c77deb19e3a8faebb1dcf05bafaea0616f1e
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Oct 7 17:19:34 2015 +0200
Bug 13799: Reword 'borrower' to 'patron'
Also, complete the Swagger definition of a patron
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit 7fe57de8e28b4fc5691beeffd3d96f6693243925
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Oct 7 14:19:58 2015 +0200
Bug 13799: Change 'required' value type from string to boolean
String is not accepted as a valid value in more recent versions of
Swagger2 module
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit 2cd6bce4427f6d7b1aba5a7349e0c258bb8762e8
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Oct 7 11:10:12 2015 +0200
Bug 13799: Allow to set Mojolicious secret in $KOHA_CONF
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit 93a88eaaf6cbe16ea7d319eb1377d865c01c2637
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Oct 7 11:00:45 2015 +0200
Bug 13799: Change Mojolicious default mode to 'production'
This avoid getting a debug page when URL is wrong.
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit 5533d658018553f2205d4d8836541a3efa6a665b
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date: Thu Sep 24 14:21:55 2015 -0300
Bug 13799: (QA followup) make tests use random data
With the introduction of TestBuilder there's no need to
rely on existing data on the DB (the original patch relies
on categories and branches already existing).
This patch creates a random branch, category and two borrowers
with the fixed data that is needed for the tests. It adjusts
the tests to use the randomized data instead of the previously
fixed one.
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
The feature works as expected and all tests passes. koha-qa.pl too.
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit 631694cd96bb3f7e759dc593bd0358a0efaf1304
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Sep 23 10:06:13 2015 +0200
Bug 13799: Fix API unit tests
They were failing because of the now required 'borrowers' permission
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit 63cb4b9d3ed0c2cb8fa7692ddb28019155b0889a
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Tue Sep 22 11:08:53 2015 +0200
Bug 13799: Add missing license notices
Signed-off-by: Joonas Kylmälä <j.kylmala at gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit b4c6ad6603b712d910a0c872139a371a453eb074
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Mon Aug 31 17:00:52 2015 +0200
Bug 13799: Add cookie-based authentication to REST API
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
commit c83cd774117f808aab27ece79fc31c9c44d4fffc
Author: Julian Maurice <julian.maurice at biblibre.com>
Date: Wed Mar 4 16:46:33 2015 +0100
Bug 13799: RESTful API with Mojolicious and Swagger2
Actual routes are:
/borrowers
Return a list of all borrowers in Koha
/borrowers/{borrowernumber}
Return the borrower identified by {borrowernumber}
(eg. /borrowers/1)
There is a test file you can run with:
$ prove t/db_dependent/rest/borrowers.t
All API stuff is in /api/v1 (except Perl modules)
So we have:
/api/v1/script.cgi CGI script
/api/v1/swagger.json Swagger specification
Change both OPAC and Intranet VirtualHosts to access the API,
so we have:
http://OPAC/api/v1/swagger.json Swagger specification
http://OPAC/api/v1/{path} API endpoint
http://INTRANET/api/v1/swagger.json Swagger specification
http://INTRANET/api/v1/{path} API endpoint
Add a (disabled) virtual host in Apache configuration api.HOSTNAME,
so we have:
http://api.HOSTNAME/api/v1/swagger.json Swagger specification
http://api.HOSTNAME/api/v1/{path} API endpoint
Add 'unblessed' subroutines to both Koha::Objects and Koha::Object to be
able to pass it to Mojolicious
Test plan:
1/ Install Perl modules Mojolicious and Swagger2
2/ perl Makefile.PL
3/ make && make install
4/ Change etc/koha-httpd.conf and copy it to the right place if needed
5/ Reload Apache
6/ Check that http://(OPAC|INTRANET)/api/v1/borrowers and
http://(OPAC|INTRANET)/api/v1/borrowers/{borrowernumber} works
Optionally, you could verify that http://(OPAC|INTRANET)/vX/borrowers
(where X is an integer greater than 1) returns a 404 error
Signed-off-by: Alex Arnaud <alex.arnaud at biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
-----------------------------------------------------------------------
Summary of changes:
C4/Installer/PerlDependencies.pm | 10 +
Koha/Object.pm | 12 ++
Koha/Objects.pm | 12 ++
Koha/REST/V1.pm | 57 +++++
Koha/REST/V1/Patrons.pm | 58 +++++
Koha/Localization.pm => api/v1/app.pl | 13 +-
api/v1/swagger.json | 375 +++++++++++++++++++++++++++++++++
etc/koha-conf.xml | 3 +
etc/koha-httpd.conf | 62 ++++++
t/db_dependent/api/v1/patrons.t | 84 ++++++++
10 files changed, 676 insertions(+), 10 deletions(-)
create mode 100644 Koha/REST/V1.pm
create mode 100644 Koha/REST/V1/Patrons.pm
copy Koha/Localization.pm => api/v1/app.pl (85%)
mode change 100644 => 100755
create mode 100644 api/v1/swagger.json
create mode 100644 t/db_dependent/api/v1/patrons.t
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list