Updated gcube-app configuration

This commit is contained in:
Francesco Mangiacrapa 2024-10-21 10:43:38 +02:00
parent 44335052c3
commit c5b325344b
4 changed files with 31 additions and 23 deletions

View File

@ -53,7 +53,7 @@ public class GeoPortalService extends ResourceConfig {
registerClasses(ProfiledDocuments.class);
registerClasses(UseCaseDescriptors.class);
registerClasses(Plugins.class);
//registerClasses(GeoportalHealth.class);
registerClasses(GeoportalHealth.class);
// registerClasses(DocsGenerator.class);
log.info("Setting implementations .. ");

View File

@ -1,17 +1,17 @@
package org.gcube.application.geoportal.service;
import javax.ws.rs.ApplicationPath;
import org.gcube.application.geoportal.service.rest.GeoportalHealth;
import org.glassfish.jersey.server.ResourceConfig;
@ApplicationPath("/api")
public class GeoPortalServiceHealth extends ResourceConfig {
public GeoPortalServiceHealth() {
registerClasses(GeoportalHealth.class);
}
}
//package org.gcube.application.geoportal.service;
//
//import javax.ws.rs.ApplicationPath;
//
//import org.gcube.application.geoportal.service.rest.GeoportalHealth;
//import org.glassfish.jersey.server.ResourceConfig;
//
//@ApplicationPath("/")
//public class GeoPortalServiceHealth extends ResourceConfig {
//
// public GeoPortalServiceHealth() {
//
// registerClasses(GeoportalHealth.class);
//
// }
//
//}

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<application mode='online'>
<name>${project.artifactId}</name>
<group>${project.groupId}</group>
<version>${project.version}</version>
<description>${project.description}</description>
<!-- <exclude>/srv/docs/*</exclude> -->
<!-- <exclude>/srv/api-docs/*</exclude> -->
<exclude>/src/health</exclude>
</application>

View File

@ -29,11 +29,7 @@
<servlet-name>default</servlet-name>
<url-pattern>/api-docs/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/api/health</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService
</servlet-name>