muka / agile-api-generator

Generates different human readable version of AGILE API spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

agile-api-generator

Generates different human readable version of AGILE API spec

Supported outputs

  • DBus API as html
  • DBus API as json
  • Restful API in swagger v2.0
  • Restful API in raml v1.0 To be refactored, waiting for proper 1.0 support!

Installation

  1. Clone the repository
  2. Install nodejs and its npm package
  3. From the repository directory run npm i
  4. Edit ./config.json to point to a clone of agile-iot/agile-api-spec
  5. run bin/api-export, see above for details on usage

Usage

Run bin/api-export to generate documentation.

To create a specific format only (see supported outputs for the available codes) run providing the format as argument eg. bin/api-export raml

To automate the building of the api while editing there is a gulp task which serve on a local webserver (http://localhost:8000) the generated api at every change. Use livereload in chrome to get the page reloaded automatically.

License

MIT

About

Generates different human readable version of AGILE API spec

License:MIT License


Languages

Language:JavaScript 75.3%Language:HTML 24.7%