0.1.3 • Published 6 years ago

apifs2swagger v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

api-first-spec-to-swagger Build Status

Swagger JSON Converter for api-first-spec

Install

$ npm install --save apifs2swagger

Usage

const apifs2swagger = require('apifs2swagger');

apifs2swagger('./**/*.spec.js');

API

apifs2swagger(input, options)

patterns

Type: string

The patterns that should executed files. patterns using node-glob.

options

-o --output

Type: string Default: docs

The path that generate static HTML for API docs.

CLI

$ npm install --global apifs2swagger
$ apifs2swagger --help

  Usage
    $ apifs2swagger [patterns]

  Options
    -o, --output  Output path for API doc. [Default: /docs]

  Examples
    $ apifs2swagger './**/*.spec.js' -o swagger
      swagger/
        index.html
        main.css
    $ apifs2swagger './**/*.spec.js'
      docs/
        index.html
        main.css

License

MIT © Mitsuru Ogawa