Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.28 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.28 KB

Calamum

Calamum is a simple ruby build program to generate a REST API documentation from a YAML file definition.

Installation

Gem Installation

Download and install calamum with the following.

$gem install calamum

Usage

 calamum -h
 Usage: /bin/calamum (options)
   -d, --debug                      Show actions to do (default)
   -f, --file DEFINITION            Definition YAML file (required)
   -p, --path PATH                  The distination path for the generated doc directory
   -t, --template TEMPLATE          Documentation HTML template
   -v, --version                    Show calamum version
   -h, --help                       Show this message

Simple Example

First, you must write a YAML file which contains the definition of your REST API. A simple example file 'sample.yml' in sample directory.

Next just run the calamum command as following:

 $calamum -f my_api_definition.yml

To execute with the sample YAML file

 $calamum -f sample/sample.yml

A "doc" directory is generated with a index file that contain your API Documentation. (by default in your home path, you can specify the destination path with the option '-p/--path')

Open the index.html file in your browser to show your api doc.