[Koha-bugs] [Bug 15126]=?UTF-8?Q?=20REST=C2=A0API?=: Use newer version of Swagger2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 4 13:16:24 CEST 2016


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

--- Comment #27 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
(In reply to Benjamin Rokseth from comment #24)
> Created attachment 49846 [details] [review]
> Bug 15126: x-mojo-controller deprecation
> 
> Remove the use of soon to be deprecated x-mojo-controller from our
> specification and replace with the recommended operationId format.
> 
> Signed-off-by: Benjamin Rokseth <benjamin.rokseth at kul.oslo.kommune.no>

Also be advised that the new model of inferring the correct
controller-subroutine -pair from the operationId is not without it's problems.
Tho if you are willing to accept some clunkiness with the operationId, you can
get by without the x-mojo-controller.

One issue I found out is that the operationId "getStory" doesn't translate to
Stories::Get, but it translates to something like Storys::Get, which might be
rather confusing.

This is not a stopper tho
Just saying, be careful.
use a lot of
export SWAGGER2_DEBUG=1
:)

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


More information about the Koha-bugs mailing list