Socket
Book a DemoInstallSign in
Socket

express-mongoose-doc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-mongoose-doc

Auto-generated API Documentation for Express and Mongoose based APIs

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
6
50%
Maintainers
1
Weekly downloads
 
Created
Source

express-mongoose-docs

This module will take away the pain of writing API and Data Model documentation for your Express & Mongoose based REST API. It auto-generates API documentation from the code on runtime so the documentation always stays up to date.

Installation

  • Step 1 : Install
npm install express-mongoose-doc
  • Step 2 : Configure

Add these lines to your app.js file

var docs = require("express-mongoose-doc");

Or

import docs from 'express-mongoose-doc';

Make sure the following line comes after all express middleware such as app.use(express.bodyParser());

docs(app, mongoose); // 2nd param is optional

That's it. The Docs web page should be accessible at Your-Base-URL/apiDocs

Example: http://localhost:1337/apiDocs

Thanks to nabeel-ahmad for express-mongoose-docs (https://github.com/nabeel-ahmad/express-mongoose-docs )

Keywords

express

FAQs

Package last updated on 26 Feb 2017

Did you know?

Socket

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