use of io.jexxa.infrastructure.drivingadapter.rest.openapi.OpenAPIConvention in project Jexxa by repplix.
the class RESTfulRPCAdapter method getJavalinConfig.
private void getJavalinConfig(JavalinConfig javalinConfig) {
javalinConfig.server(this::getServer);
javalinConfig.showJavalinBanner = false;
javalinConfig.jsonMapper(new JexxaJSONMapper());
Location location = Location.CLASSPATH;
if (properties.getProperty(JexxaWebProperties.JEXXA_REST_STATIC_FILES_EXTERNAL, "false").equalsIgnoreCase("true")) {
location = Location.EXTERNAL;
}
if (properties.containsKey(JexxaWebProperties.JEXXA_REST_STATIC_FILES_ROOT)) {
javalinConfig.addStaticFiles(properties.getProperty(JexxaWebProperties.JEXXA_REST_STATIC_FILES_ROOT), location);
}
this.openAPIConvention = new OpenAPIConvention(properties, javalinConfig);
}
use of io.jexxa.infrastructure.drivingadapter.rest.openapi.OpenAPIConvention in project Jexxa by jexxa-projects.
the class RESTfulRPCAdapter method getJavalinConfig.
private void getJavalinConfig(JavalinConfig javalinConfig) {
javalinConfig.server(this::getServer);
javalinConfig.showJavalinBanner = false;
javalinConfig.jsonMapper(new JexxaJSONMapper());
Location location = Location.CLASSPATH;
if (properties.getProperty(JexxaWebProperties.JEXXA_REST_STATIC_FILES_EXTERNAL, "false").equalsIgnoreCase("true")) {
location = Location.EXTERNAL;
}
if (properties.containsKey(JexxaWebProperties.JEXXA_REST_STATIC_FILES_ROOT)) {
javalinConfig.addStaticFiles(properties.getProperty(JexxaWebProperties.JEXXA_REST_STATIC_FILES_ROOT), location);
}
this.openAPIConvention = new OpenAPIConvention(properties, javalinConfig);
}
Aggregations