Bugzilla – Attachment 165945 Details for
Bug 36546
Bundle API spec to speed up worker startup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36546: (follow-up) Add fallback to unbundled spec
Bug-36546-follow-up-Add-fallback-to-unbundled-spec.patch (text/plain), 1.00 KB, created by
Martin Renvoize (ashimema)
on 2024-05-01 08:17:54 UTC
(
hide
)
Description:
Bug 36546: (follow-up) Add fallback to unbundled spec
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-05-01 08:17:54 UTC
Size:
1.00 KB
patch
obsolete
>From 188307b2b0eeef451c6edc46a171233e54a3de26 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 1 May 2024 09:16:21 +0100 >Subject: [PATCH] Bug 36546: (follow-up) Add fallback to unbundled spec > >Some developers are running without ktd still and as such may not want >to install the node modules required to bundle the specification. > >This patch adds a fallback to the unbundled yaml files when the >bundle.json file isn't found. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/REST/V1.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm >index 66bae63d730..52bd15697ec 100644 >--- a/Koha/REST/V1.pm >+++ b/Koha/REST/V1.pm >@@ -76,6 +76,9 @@ sub startup { > } > > my $spec_file = $self->home->rel_file("api/v1/swagger/swagger_bundle.json"); >+ if (!-f $spec_file) { >+ $spec_file = $self->home->rel_file("api/v1/swagger/swagger.yaml"); >+ } > > push @{$self->routes->namespaces}, 'Koha::Plugin'; > >-- >2.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36546
:
164520
|
165412
|
165446
|
165449
|
165450
|
165550
|
165581
|
165589
|
165821
|
165828
|
165829
|
165830
|
165831
|
165923
| 165945