@sigodenjs/dee-swaggerize
swagger document driven route builder for dee framework
Last updated 2 years ago by sigoden .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sigodenjs/dee-swaggerize 
SYNC missed versions from official npm registry.

Dee-swaggerize

Usage

var swaggerize = require('@sigodenjs/dee-swaggerize');
var express = require('express');
var bodyParser = require('body-parser');

var app = express();

app.use(bodyParser.json());

swaggerize(app, {
    // swagger 对象或路径
    api: require('./fixtures/defs/pets.json'),
    // 处理器函数,是一个对象,其每个属性对应一个接口操作。
    handlers: require('./handlers'),
    // 安全控制函数,是一个对象,其每个属性对应一个安全验证操作。
    security: require('./security'),
    // 处理解析出的 Route 对象
    routeIteratee: function(route) {
        return route;
    }
});

Current Tags

  • 0.2.6                                ...           latest (2 years ago)

10 Versions

  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (10)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |