-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow adding external scripts to the index.html #83
Comments
Zhomart
added a commit
to Zhomart/http-swagger
that referenced
this issue
Jan 13, 2023
Summary: This allows importing plugins from local and external hosts. ``` r.Get("/swagger/*", httpSwagger.Handler( httpSwagger.ScriptSrc("/static/swagger-helper.js"), httpSwagger.ScriptSrc("https://unpkg.com/[email protected]/build/index.js"), httpSwagger.Plugins([]string{"DisableTryItOutWithoutServersPlugin"}, httpSwagger.URL("http://localhost:1323/swagger/doc.json"), //The url pointing to API definition )) ``` Closes swaggo#83 Test Plan: Updated existing tests. Added example in example/go-chi/
Zhomart
added a commit
to Zhomart/http-swagger
that referenced
this issue
Jan 13, 2023
Summary: This allows importing plugins from local and external hosts. ``` r.Get("/swagger/*", httpSwagger.Handler( httpSwagger.ScriptSrc("/static/swagger-helper.js"), httpSwagger.ScriptSrc("https://unpkg.com/[email protected]/build/index.js"), httpSwagger.Plugins([]string{"DisableTryItOutWithoutServersPlugin"}, httpSwagger.URL("http://localhost:1323/swagger/doc.json"), //The url pointing to API definition )) ``` Closes swaggo#83 Test Plan: Updated existing tests. Added example in example/go-chi/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently these is no way to add more
<script src="local or extern"> </script>
tags. Having this is useful to add local or externalswagger-ui
plugins.I'm thinking of this kind of config
The text was updated successfully, but these errors were encountered: