This library allows you to generate a consumable Java interface based on Retrofit annotations from a RAML file.
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.