amorimjj / redoc-try-it-out

Add Try It Out option on Redoc
MIT License
28 stars 9 forks source link

Can support read swagger from path ? #2

Open tinhan opened 1 year ago

tinhan commented 1 year ago

Can we read swager file from local storage or disk or somewhere ?, but not online.

Sawmonabo commented 1 year ago

Were you able to test around with the script implementation? Using the RedocTryItOut.init(), how did you get the options parameter to work and take multiple arguments?

becmartinavetta commented 10 months ago

Hi, I managed to get this to work with a spec that was in the same directory as the static assets, i.e.

RedocTryItOut.init( "dist.json", { }, document.getElementById("redoc_container") )

but it's not showing the try it out on any of my API endpoints. What am I missing?