pub.codex.apix.doc.ControllerDocument Maven / Gradle / Ivy
package pub.codex.apix.doc;
import pub.codex.apix.schema.ApiDescription;
import java.util.ArrayList;
import java.util.List;
public class ControllerDocument {
private String name;
private List apis;
public ControllerDocument(String name, List apis) {
this.name = name;
if (apis.size() > 0) {
this.apis = new ArrayList<>();
apis.forEach(apiDescription -> {
this.apis.add(new ApiDocument(apiDescription));
});
}
}
public List getApis() {
return apis;
}
public String getName() {
return name;
}
}