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
This commit is contained in:
parent
061d321e30
commit
97dad98099
|
@ -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<String, String> 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue