openapi-viewer

UI for OpenAPI files

Usage no npm install needed!

<script type="module">
  import openapiViewer from 'https://cdn.skypack.dev/openapi-viewer';
</script>

README

OpenAPI Viewer

View an OpenAPI document in your browser with one command. Supports both JSON and YAML documents

Installation

$ npm install -g openapi-viewer

Usage

You simple execute at the terminal

# ctrl + c to exit
$ openapi-viewer petstore.json

or

$ openapi-viewer https://petstore.swagger.io/v2/swagger.json