@ApplicationPath("resources")
@BasicAuthenticationMechanismDefinition(realmName = "admin-realm")
@OpenAPIDefinition(info = @Info(
title = "RESTful API",
description = "Backend REST API",
version = "1.0.0-Snapshot",
contact = @Contact(
name = "AVbravo",
email = "avbravo@gmail.com",
url = "https://avbravo.blogspot.com")
),
servers = {
@Server(url = "http://localhost:8080/", description = "Local Development Server "),}
)
public class JAXRSConfiguration extends Application {
@Inject
@ConfigProperty(name = "openapi.ui.copyrightYear")
Optional<Integer> openapiuicopyrightYear;
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new java.util.HashSet<>();
try {
JmoordbConnection jmc = new JmoordbConnection.Builder()
.withSecurity(false)
.withDatabase("autentification")
.withHost("")
.withPort(0)
.withUsername("")
.withPassword("")
.build();
} catch (Exception e) {
System.out.println("JAXRSConfiguration.getClasses() " + e.getLocalizedMessage());
}
return resources;
}
}