Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Latest commit

 

History

History

dropwizard-raml-generator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

DropWizard RAML Generator

This library contains a RamlGenerator class that will generate a RAML specification for an application based on a combination of toolbox and JAX-RS annotations.

The resulting output of the RamlGenerator.generate() command is a String representation of the derived RAML.

Dependency

Maven

<dependency>
    <groupId>net.ozwolf</groupId>
    <artifactId>dropwizard-raml-generator</artifactId>
    <version>2.1.0</version>
</dependency>

Gradle

compile 'net.ozwolf:dropwizard-raml-generator:2.1.0'

Schema and Example Generation

Currently, the generator only supports schema and example generation for application/json and text/xml content.

If your resources return other content types, then resource files will need to be supplied manually.

Example Usage

try {
    String raml = new RamlGenerator("com.test.app", "1.2.3").generate();
} catch(RamlGenerationException e){}
    LOGGER.error("Error generating RAML specification.", e);
}