sk-swagger-serverless

Host swagger UI on serverless function

Usage no npm install needed!

<script type="module">
  import skSwaggerServerless from 'https://cdn.skypack.dev/sk-swagger-serverless';
</script>

README

This package allow to host swaggerUI on AWS Lambda. All CSS and JS files inlined into response.

Usage

SwaggerServerless.buildSwaggerUI(options)

This method will return HTML with all Swagger JS and CSS files.

Options - object with two possible params: url - url to swagger documentation (json, yml) spec - swagger documentation object