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(ProfiledDocuments.class);
registerClasses(UseCaseDescriptors.class); registerClasses(UseCaseDescriptors.class);
registerClasses(Plugins.class); registerClasses(Plugins.class);
//registerClasses(GeoportalHealth.class); registerClasses(GeoportalHealth.class);
// registerClasses(DocsGenerator.class); // registerClasses(DocsGenerator.class);
log.info("Setting implementations .. "); log.info("Setting implementations .. ");

View File

@ -1,17 +1,17 @@
package org.gcube.application.geoportal.service; //package org.gcube.application.geoportal.service;
//
import javax.ws.rs.ApplicationPath; //import javax.ws.rs.ApplicationPath;
//
import org.gcube.application.geoportal.service.rest.GeoportalHealth; //import org.gcube.application.geoportal.service.rest.GeoportalHealth;
import org.glassfish.jersey.server.ResourceConfig; //import org.glassfish.jersey.server.ResourceConfig;
//
@ApplicationPath("/api") //@ApplicationPath("/")
public class GeoPortalServiceHealth extends ResourceConfig { //public class GeoPortalServiceHealth extends ResourceConfig {
//
public GeoPortalServiceHealth() { // public GeoPortalServiceHealth() {
//
registerClasses(GeoportalHealth.class); // 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,10 +29,6 @@
<servlet-name>default</servlet-name> <servlet-name>default</servlet-name>
<url-pattern>/api-docs/*</url-pattern> <url-pattern>/api-docs/*</url-pattern>
</servlet-mapping> </servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/api/health</url-pattern>
</servlet-mapping>
<servlet-mapping> <servlet-mapping>
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService <servlet-name>org.gcube.application.geoportal.service.GeoPortalService