io.swagger.validator.ValidatorApplication Maven / Gradle / Ivy
package io.swagger.validator;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import io.swagger.validator.resources.ValidatorResource;
import java.util.HashSet;
import java.util.Set;
@ApplicationPath("/")
public class ValidatorApplication extends Application {
@Override
public Set> getClasses() {
final Set> classes = new HashSet>();
// register root resource
classes.add(ValidatorResource.class);
return classes;
}
}