Socket
Socket
Sign inDemoInstall

swagger-docs

Package Overview
Dependencies
20
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    swagger-docs

> [Swagger](http://swagger.io) API Documentations Viewer


Version published
Weekly downloads
5
decreased by-58.33%
Maintainers
1
Install size
2.85 MB
Created
Weekly downloads
 

Readme

Source

Swagger Docs

Swagger API Documentations Viewer

Build Status

Warning! Under development

This project is under development and not ready for production use.

Features

✔ Customizable

It's very easy to customize the looks of Swagger Docs.

✔ Linkable

Each path, operation, parameter and many more elements have their own URL.

✔ Independent from Swagger specs

Swagger Docs can load Swagger specs dynamically. Updating your API documentation is as easy as updating your Swagger specs file (swagger.json).

✔ Templates

You can use templates in description sections or other places to have custom variables for each user. For example you can have user access_token in documentations.

✔ Mobile Ready

Documentations look as good in mobile devices.

Usage

Serve static files

Swagger Docs is a static web application. You can download it via npm and serve the dist folder in your web server. Swagger Docs will make a request to ./swagger.json to get the Swagger document to render.

npm install swagger-docs
Use the Connect middle-ware

If you are using Express or any other Connect based server, there is a connect middle-ware.

var SwaggerDocs = require('swagger-docs');
var swagger = require('path/to/swagger.json');

app.use(SwaggerDocs.middleWare(swagger, {path: '/api-documentations'}));

Configuring Swagger Docs

Read Configuration Documentations here

Development

Read Development Documentations here.

License

MIT

FAQs

Last updated on 21 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc