[Koha-bugs] [Bug 20134] New: Remove /api/v1/app.pl from the generated URLs
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 5 14:25:11 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20134
Bug ID: 20134
Summary: Remove /api/v1/app.pl from the generated URLs
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST api
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
The REST api is exposed using /api/v1, but that is rewritten to hit
/api/v1/app.pl/api/v1 (app.pl being a Mojolicious::Command wrapper for running
in Mojolicious under Plack). The problem is that Mojolicious then creates URLs
containing that unneeded /api/v1/app.pl prefix. We should strip that out.
To reproduce:
- Point your browser to http://your_host_name/api/v1/
(don't forget about the trailing slash)
=> FAIL: Notice basePath: "/api/v1/app.pl/api/v1"
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list