diff --git a/src/main/java/eu/h2020/symbiote/client/ClientConstants.java b/src/main/java/eu/h2020/symbiote/client/ClientConstants.java index 83eb42a..813424d 100644 --- a/src/main/java/eu/h2020/symbiote/client/ClientConstants.java +++ b/src/main/java/eu/h2020/symbiote/client/ClientConstants.java @@ -13,4 +13,5 @@ public interface ClientConstants { String RH_CLEAR_PATH = "/clear"; String RH_LOCAL_RESOURCES_PATH = "/local/resources"; String RH_LOCAL_RESOURCES_SHARE_PATH = RH_LOCAL_RESOURCES_PATH+"/share"; + String RH_UPDATE_INTERWORKING_API = RH_RESOURCES_PATH+"/interworkingURL"; } diff --git a/src/main/java/eu/h2020/symbiote/client/RegistrationHandlerClient.java b/src/main/java/eu/h2020/symbiote/client/RegistrationHandlerClient.java index 53a2827..9ef9b8b 100644 --- a/src/main/java/eu/h2020/symbiote/client/RegistrationHandlerClient.java +++ b/src/main/java/eu/h2020/symbiote/client/RegistrationHandlerClient.java @@ -9,6 +9,7 @@ import java.util.List; import java.util.Map; +@Headers("Accept: application/json") public interface RegistrationHandlerClient { @RequestLine("GET " + ClientConstants.RH_RESOURCES_PATH) @@ -75,4 +76,8 @@ public interface RegistrationHandlerClient { @Headers("Content-Type: application/json") Map> unshareResources(Map> input); + @RequestLine("PUT " + ClientConstants.RH_UPDATE_INTERWORKING_API) + @Headers("Content-Type: text/plain") + List updateInterworkingURL(String url); + }