From 021d53ad83cbfa241e0bda6373e66eb794a12587 Mon Sep 17 00:00:00 2001 From: Fabio Sinibaldi Date: Wed, 17 Feb 2021 16:58:49 +0100 Subject: [PATCH] fixed constants imports --- .../main/java/org/gcube/spatial/data/sdi/rest/SDI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdi-service/src/main/java/org/gcube/spatial/data/sdi/rest/SDI.java b/sdi-service/src/main/java/org/gcube/spatial/data/sdi/rest/SDI.java index efc02ba..a78ae4d 100644 --- a/sdi-service/src/main/java/org/gcube/spatial/data/sdi/rest/SDI.java +++ b/sdi-service/src/main/java/org/gcube/spatial/data/sdi/rest/SDI.java @@ -45,7 +45,7 @@ public class SDI { @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) - @Path("status") + @Path(ServiceConstants.SDI.STATUS_PATH) public HealthReport getReport() { try{ return sdiManager.getHealthReport(); @@ -59,9 +59,9 @@ public class SDI { @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) - @Path("profile/{"+SERVICE_CLASS_PARAM+"}/{"+SERVICE_NAME_PARAM+"}") - public ApplicationProfile getProfile(@PathParam(SERVICE_CLASS_PARAM) String serviceClass, - @PathParam(SERVICE_NAME_PARAM) String serviceName) { + @Path(ServiceConstants.SDI.PROFILES_PATH+"/{"+ServiceConstants.SDI.SERVICE_CLASS_PARAM+"}/{"+ServiceConstants.SDI.SERVICE_NAME_PARAM+"}") + public ApplicationProfile getProfile(@PathParam(ServiceConstants.SDI.SERVICE_CLASS_PARAM) String serviceClass, + @PathParam(ServiceConstants.SDI.SERVICE_NAME_PARAM) String serviceName) { try { log.debug("Looking for Application Profile [SC :{} SN : {}]",serviceClass,serviceName); throw new RuntimeException("Feature not yet available");