From 97dad98099fb4c74b439a3dd228b45e3d6236189 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 6 Jun 2018 17:26:19 +0000 Subject: [PATCH] Refs #11288: Made resource-registry more RESTful Task-Url: https://support.d4science.org/issues/11288 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-client@167900 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/ResourceRegistryClientImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java index bba01bf..34830cd 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java @@ -70,7 +70,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { stringWriter.append(PATH_SEPARATOR); stringWriter.append(AccessPath.ACCESS_PATH_PART); stringWriter.append(PATH_SEPARATOR); - stringWriter.append(AccessPath.INSTANCE_PATH_PART); + stringWriter.append(AccessPath.INSTANCES_PATH_PART); stringWriter.append(PATH_SEPARATOR); stringWriter.append(type); stringWriter.append(PATH_SEPARATOR); @@ -112,7 +112,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { stringWriter.append(PATH_SEPARATOR); stringWriter.append(AccessPath.ACCESS_PATH_PART); stringWriter.append(PATH_SEPARATOR); - stringWriter.append(AccessPath.INSTANCE_PATH_PART); + stringWriter.append(AccessPath.INSTANCES_PATH_PART); stringWriter.append(PATH_SEPARATOR); stringWriter.append(type); stringWriter.append(PATH_SEPARATOR); @@ -208,9 +208,10 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { Map parameters = new HashMap<>(); parameters.put(AccessPath.POLYMORPHIC_PARAM, polymorphic.toString()); + parameters.put(AccessPath.REFERENCE, reference.toString()); parameters.put(AccessPath.DIRECTION, direction.toString()); - + HTTPCall httpCall = getHTTPCall(); String ret = httpCall.call(String.class, stringWriter.toString(), HTTPMETHOD.GET, parameters); @@ -382,7 +383,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { stringWriter.append(PATH_SEPARATOR); stringWriter.append(AccessPath.ACCESS_PATH_PART); stringWriter.append(PATH_SEPARATOR); - stringWriter.append(AccessPath.SCHEMA_PATH_PART); + stringWriter.append(AccessPath.TYPES_PATH_PART); stringWriter.append(PATH_SEPARATOR); stringWriter.append(type);