Skip to content

This is an library to convert a RAML file into a retrofit annotated java interface.

Notifications You must be signed in to change notification settings

juandesi/raml-to-retrofit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RAML to Retrofit

This library allows you to generate a consumable Java interface based on Retrofit annotations from a RAML file.

Example

public void doGenerate() {
	final String directory = "/Users/juandesi/projectX";
	Scaffolder converter = new Scaffolder("InterfaceName", "org.desi.juan", "/resource/location");
	converter.write(Paths.get(directory));
}

Your java file should be located in the specified directory.

Building Locally

Prerequisites

  • Maven installation

  • JDK 8

Build

Just run a mvn clean install -DskipTests command and maven will install the lib in your local repository and also the jar file will be generated under the /target folder.

About

This is an library to convert a RAML file into a retrofit annotated java interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published