Skip to content

knoxknox/calamum

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

REST API documentation generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.4%
  • Ruby 7.6%