Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make an option to alter the hardcoded applicaton #2

Open
evshvarov opened this issue Apr 12, 2020 · 1 comment
Open

Make an option to alter the hardcoded applicaton #2

evshvarov opened this issue Apr 12, 2020 · 1 comment

Comments

@evshvarov
Copy link

Now, http://localhost:52773/crud/_spec app is displayed by default.
Let the option to alter it

@SylvainGuilbaud
Copy link

In the meantime you can simply (1) modify the default URL in the index.html and just (2) copy it for instance at the end of your Dockerfile :

(1) :
in the index.html of swagger-ui :

<script> window.onload = function() { // Begin Swagger UI call region const ui = SwaggerUIBundle({ url: "http://localhost:32773/api/mgmnt/v1/IRISAPP/spec/front-end/api", dom_id: '#swagger-ui', deepLinking: true, presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], layout: "StandaloneLayout" }) // End Swagger UI call region window.ui = ui } </script>

(2)
In the Dockerfile :
COPY swagger-ui/index.html /usr/irissys/csp/swagger-ui/index.html

you'll find a sample on https://github.com/SylvainGuilbaud/todo-list

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants