[Koha-bugs] [Bug 18137] REST API: Migrate from Mojolicious::Plugin:: Swagger2 to Mojolicious::Plugin::OpenAPI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 5 18:03:48 CEST 2017


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

--- Comment #54 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Ok, I tested this successfully using:

$ sudo cpanm Mojolicious at 7.31
$ sudo cpanm JSON::Validator at 0.96
$ sudo cpanm Mojolicious::Plugin::OpenAPI at 1.13

Tests pass:
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ prove t/db_dependent/api/v1/
t/db_dependent/api/v1/auth.t ..... Use of uninitialized value $lasttime in
numeric lt (<) at /home/vagrant/kohaclone/C4/Auth.pm line 1673.
t/db_dependent/api/v1/auth.t ..... ok   
t/db_dependent/api/v1/cities.t ... ok   
t/db_dependent/api/v1/holds.t .... ok   
t/db_dependent/api/v1/patrons.t .. ok     
All tests successful.
Files=4, Tests=31, 10 wallclock secs ( 0.05 usr  0.00 sys +  8.52 cusr  1.26
csys =  9.83 CPU)
Result: PASS

I also tested the API using Firefox's HttpRequester, with excellent results.

I'm signing this patchset, but will wait for Mirko to tell about the deps,
because otherwise we could end up breaking the stable release due to unpackaged
dependencies.

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


More information about the Koha-bugs mailing list