I am trying to use unpkg
to load the swagger UI as mentioned in the documentaion here
And when it loads it throws an error saying
No layout defined for "StandaloneLayout"
Anyone has any idea about this?
If you don't see the url or if url is a code expression, open the browser dev tools, switch to the Network tab and disable caching. Then refresh the page and search for the API definition file ( swagger. json , swagger. yaml , api-docs or similar) among HTTP requests.
For those looking for answers, here is the complete html that actually works
https://github.com/sunnyagarwal008/setup-swagger-ui-in-one-page/blob/master/swagger-ui.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With