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-api@167856 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8deaca353b
commit
8ea242e4fb
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.informationsystem.resourceregistry.api.exceptions.schema;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public class SchemaCreationException extends SchemaException {
|
||||
|
||||
/**
|
||||
* Generated Serial Version UID
|
||||
*/
|
||||
private static final long serialVersionUID = -7235498402448768270L;
|
||||
|
||||
public SchemaCreationException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public SchemaCreationException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public SchemaCreationException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
|
@ -25,10 +25,9 @@ public class AccessPath {
|
|||
public static final String CONSISTS_OF_PATH_PART = ERPath.CONSISTS_OF_PATH_PART;
|
||||
public static final String IS_RELATED_TO_PATH_PART = ERPath.IS_RELATED_TO_PATH_PART;
|
||||
|
||||
public static final String CONTEXT_PATH_PART = ContextPath.CONTEXT_PATH_PART;
|
||||
public static final String ALL_PATH_PART = ContextPath.ALL_PATH_PART;
|
||||
public static final String CONTEXTS_PATH_PART = ContextPath.CONTEXTS_PATH_PART;
|
||||
|
||||
public static final String SCHEMA_PATH_PART = SchemaPath.SCHEMA_PATH_PART;
|
||||
public static final String SCHEMA_PATH_PART = SchemaPath.SCHEMAS_PATH_PART;
|
||||
public static final String INSTANCE_PATH_PART = "instance";
|
||||
|
||||
public static final String INSTANCES_PATH_PART = "instances";
|
||||
|
|
|
@ -8,7 +8,6 @@ package org.gcube.informationsystem.resourceregistry.api.rest;
|
|||
*/
|
||||
public class ContextPath {
|
||||
|
||||
public static final String CONTEXT_PATH_PART = "context";
|
||||
|
||||
public static final String ALL_PATH_PART = "all";
|
||||
public static final String CONTEXTS_PATH_PART = "contexts";
|
||||
|
||||
}
|
||||
|
|
|
@ -5,7 +5,9 @@ package org.gcube.informationsystem.resourceregistry.api.rest;
|
|||
*/
|
||||
public class SchemaPath {
|
||||
|
||||
public static final String SCHEMA_PATH_PART = "schema";
|
||||
public static final String SCHEMAS_PATH_PART = "schemas";
|
||||
public static final String POLYMORPHIC_PARAM = AccessPath.POLYMORPHIC_PARAM;
|
||||
|
||||
public static final String BASE_TYPE_PATH_PARAM = "baseType";
|
||||
|
||||
}
|
|
@ -220,7 +220,7 @@ public class HTTPCall {
|
|||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected <C> C call(Class<C> clz, String path, HTTPMETHOD method, Map<String, ? extends Object> parameters,
|
||||
public <C> C call(Class<C> clz, String path, HTTPMETHOD method, Map<String, ? extends Object> parameters,
|
||||
String body) throws Exception {
|
||||
|
||||
String urlParameters = getParametersDataString(parameters);
|
||||
|
|
Loading…
Reference in New Issue