Skip to content
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

Omit host&basepath from spec #3321

Closed
pohckuan opened this issue Jun 30, 2017 · 1 comment
Closed

Omit host&basepath from spec #3321

pohckuan opened this issue Jun 30, 2017 · 1 comment

Comments

@pohckuan
Copy link

pohckuan commented Jun 30, 2017

This is what I have in my load-api.json file,
is there a way to put a dynamic host and basePath in this file instead of the spec?

window.onload = function() {
// Build a system
const ui = SwaggerUIBundle({
url: "xxxxxxxxxx",
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})

window.ui = ui
}

@pohckuan pohckuan changed the title Host in load-api.js file Omit host&basepath from spec Jun 30, 2017
@webron
Copy link
Contributor

webron commented Jul 3, 2017

It's not implemented yet. Please follow swagger-api/swagger-js#1045 for progress.

@webron webron closed this as completed Jul 3, 2017
@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants