ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
97 stars 32 forks source link

Use swagger offline #99

Closed sanchric-forvia closed 2 weeks ago

sanchric-forvia commented 2 weeks ago

Could be possible had swagger files locally on the project, if app is on intranet and is not possible download from CDN nothing can be done

image

Many companies use the tools on intranet and is not possible download content from CDN

ad-on-is commented 2 weeks ago

you can do that in your adonisjs project yourself. just use the route to render the swagger ui yourself however you like and use the /swagger endpoint for the yaml.

sanchric-forvia commented 2 weeks ago

Yeah that works great

image

But /docs depends on download

image

so on intranet the swagger ui is not displayed

sanchric-forvia commented 2 weeks ago

Ok, I think i get your point, I will try to do it

ad-on-is commented 2 weeks ago

Instead of using Autoswagger.ui(), just render your own template