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@167900 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-06-06 17:26:19 +00:00
parent a63e349e23
commit 05f791deea
4 changed files with 32 additions and 19 deletions

View File

@ -10,36 +10,33 @@ public class AccessPath {
public static final String ACCESS_PATH_PART = "access";
public static final String QUERY_PARAM = "query";
public static final String CONTEXTS_PATH_PART = ContextPath.CONTEXTS_PATH_PART;
public static final String TYPES_PATH_PART = TypePath.TYPES_PATH_PART;
public static final String INSTANCES_PATH_PART = InstancePath.INSTANCES_PATH_PART;
public static final String QUERY_PATH_PART = "query";
public static final String QUERY_PARAM = "q";
public static final String LIMIT_PARAM = "limit";
public static final String FETCH_PLAN_PARAM = "fetchPlan";
public static final int UNBOUNDED = -1;
public static final int DEFAULT_LIMIT = 20;
public static final String FACETS_PATH_PART = ERPath.FACET_PATH_PART;
public static final String RESOURCE_PATH_PART = ERPath.RESOURCE_PATH_PART;
public static final String EMBEDDED_PATH_PART = ERPath.EMBEDDED_PATH_PART;
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 CONTEXTS_PATH_PART = ContextPath.CONTEXTS_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";
public static final String POLYMORPHIC_PARAM = "polymorphic";
@Deprecated
public static final String REFERENCE = "reference";
public static final String DIRECTION = "direction";
@Deprecated
public static final String RESOURCE_INSTANCES_PATH_PART = "resourceInstances";
@Deprecated
public static final String RELATION_TYPE_PATH_PART = "relationType";
@Deprecated
public static final String FACET_TYPE_PATH_PART = "facetType";
}

View File

@ -0,0 +1,8 @@
package org.gcube.informationsystem.resourceregistry.api.rest;
public class InstancePath {
public static final String INSTANCES_PATH_PART = "instances";
}

View File

@ -0,0 +1,9 @@
package org.gcube.informationsystem.resourceregistry.api.rest;
public class SharingPath {
public static final String SHARING_PATH_PART = "sharing";
}

View File

@ -3,11 +3,10 @@ package org.gcube.informationsystem.resourceregistry.api.rest;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class SchemaPath {
public class TypePath {
public static final String TYPES_PATH_PART = "types";
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";
}