
works.lmz.syllabus.apidoc.events.GroovyApiDocEvent.groovy Maven / Gradle / Ivy
package works.lmz.syllabus.apidoc.events
import works.lmz.syllabus.ApiDoc
import works.lmz.syllabus.events.Event
/**
* Author: Marnix
*
*/
@Event(namespace = "apidoc", name="groovy-apidoc-event-test")
class GroovyApiDocEvent {
public Output handleEvent(Input payload) throws Exception {
return new Output();
}
public static class Input {
@ApiDoc("API input on variable")
String input;
String output;
public String getInput() {
return "input";
}
@ApiDoc("Api output prefix")
public String getOutput() {
return "output";
}
}
public static class Output {
String echoOutput;
@ApiDoc("Echoed output")
public String getEchoOutput() {
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy