![JAR search and dependency download from the Maven repository](/logo.png)
works.lmz.syllabus.apidoc.events.ApiDocEvent Maven / Gradle / Ivy
package works.lmz.syllabus.apidoc.events;
import works.lmz.syllabus.ApiDoc;
import works.lmz.syllabus.events.Event;
/**
* Author: Marnix
*
* Test event
*/
@ApiDoc("Api documentation")
@Event(namespace = "apidoc", name = "apidoc-event-test")
public class ApiDocEvent{
public Output handleEvent(Input payload) throws Exception {
return new Output();
}
public static class Input{
@ApiDoc("API input")
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