Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
swagger-docs
Advanced tools
Swagger API Documentations Viewer
This project is under development and not ready for production use.
It's very easy to customize the looks of Swagger Docs.
Each path, operation, parameter and many more elements have their own URL.
Swagger Docs can load Swagger specs dynamically. Updating your API documentation is as easy as updating your Swagger specs file (swagger.json
).
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.
Documentations look as good in mobile devices.
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
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'}));
Read Configuration Documentations here
Read Development Documentations here.
MIT
FAQs
> [Swagger](http://swagger.io) API Documentations Viewer
We found that swagger-docs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.