Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 791 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 791 Bytes

Swagger UI HTML

HTML page having embed Swagger UI's code directly by using unpkg's interface

Instructions to Use

Just copy and paste this file to your project directory and set the URL of your swagger JSON in the file below:

  SwaggerUIBundle({
    url: "https://petstore.swagger.io/v2/swagger.json", // <- Change Path Here
    dom_id: '#swagger-ui',
    presets: [
      SwaggerUIBundle.presets.apis,
      SwaggerUIBundle.SwaggerUIStandalonePreset
    ],
    layout: "StandaloneLayout" 
  })

Once added, you should be able to browse the following Swagger UI endpoints respectively:

<your-root-url>/swagger.html

For more information on controlling Swagger UI, please see the official documentation of the Swagger UI