[Bug 15126] REST API: Use newer version of Swagger2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15126 --- Comment #27 from Olli-Antti Kivilahti <olli-antti.kivilahti@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@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.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org