Skip to content

Any way to change swagger-stats ui page title? #44

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

Closed
firefoxNX opened this issue Jul 13, 2018 · 3 comments
Closed

Any way to change swagger-stats ui page title? #44

firefoxNX opened this issue Jul 13, 2018 · 3 comments
Assignees

Comments

@firefoxNX
Copy link

The ui page title shows as "Swagger Stats UI". Is there any way to change this?

https://github.com/slanatech/swagger-stats/blob/master/lib/swsUtil.js#L262

@sv2 sv2 self-assigned this Jul 13, 2018
@sv2
Copy link
Collaborator

sv2 commented Jul 13, 2018

Will introduce option for that ...
In the meantime, you may consider making your own UI page - just serve markup similar to embedded, with adjustments as you need, on different URL in your app. Or you may even embed swagger-stats UI into one of existing UI pages in your app - just add links to css and js, and init swagger-stats UI on specific div:

<script>\
$(document).ready(function(){$("#SWSUI").swaggerstatsui({});});\
</script>\

@sv2
Copy link
Collaborator

sv2 commented Apr 3, 2021

Starting from 0.99.1 page title shows what is passed in the "name" configuration option of swagger-stats

@sv2
Copy link
Collaborator

sv2 commented Apr 3, 2021

Addressed v0.99.1

@sv2 sv2 closed this as completed Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants