diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/ServiceInstance.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/ServiceInstance.java index e59d06c..26ea4fd 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/ServiceInstance.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/ServiceInstance.java @@ -11,8 +11,13 @@ public abstract class ServiceInstance { public static final String BASE_URL = "https://url.d4science.org"; - public static String getServiceURL() { + public static String getCurrentContextFullName() { String context = SecretManagerProvider.instance.get().getContext(); + return context; + } + + public static String getServiceURL() { + String context = getCurrentContextFullName(); return getServiceURL(context); }