ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
129 stars 41 forks source link

Use swagger offline #99

Closed sanchric-forvia closed 5 months ago

sanchric-forvia commented 5 months 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 5 months 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 5 months ago

Yeah that works great

image

But /docs depends on download

image

so on intranet the swagger ui is not displayed

sanchric-forvia commented 5 months ago

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

ad-on-is commented 4 months ago

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