gapidoc
RESTful web API Documentation Generator by cobaimelan, updated by techgaun
Last updated 5 years ago by techgaun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gapidoc 
SYNC missed versions from official npm registry.

gulp-apidoc Build Status

Generates a RESTful web API Documentation. Documentation at apidocjs.com

Uses the apidoc library.

How It Works

/path/api/stuff.js:

/**
 * @api {get} /user/:id Request User information
 * @apiName GetUser
 * @apiGroup User
 *
 * @apiParam {Number} id Users unique ID.
 *
 * @apiSuccess {String} firstname Firstname of the User.
 * @apiSuccess {String} lastname  Lastname of the User.
 */

Install

Install with npm

npm install --save-dev gulp-apidoc

Usage

var gulp = require('gulp'),
    apidoc = require('gulp-apidoc');

gulp.task('apidoc', function(){
          apidoc.exec({
            src: "example/",
            dest: "build/"
          });
});

With options:

var gulp = require('gulp'),
    apidoc = require('gulp-apidoc');

gulp.task('apidoc',function(){
              apidoc.exec({
	              src: "example/",
                  dest: "build/",
                  debug: true,
                  includeFilters: [ ".*\\.js$" ]
              });
});

Other options checkout.

API

apidoc(options)

options.src

Type: String

options.dest

Type: string Default: doc/

options.debug

Type: Boolean Default: false

options.log

Type: Boolean Default: true

options.includeFilters

Type: Array Default: []

Current Tags

  • 0.0.5                                ...           0.0.5 (6 years ago)
  • 0.0.6                                ...           0.0.6 (6 years ago)
  • 0.0.7                                ...           0.0.7 (6 years ago)
  • 0.0.8                                ...           0.0.8 (6 years ago)
  • 0.1.0                                ...           0.1.0 (5 years ago)
  • 0.1.1                                ...           0.1.1 (5 years ago)
  • 0.0.9                                ...           gapidoc@0.0.9 (6 years ago)
  • 0.1.1                                ...           latest (5 years ago)

7 Versions

  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.9                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |