From 48178865ddfdfed067bea4379c6ef8133e88ca03 Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Fri, 8 Jun 2018 13:05:47 +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-api@168986 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../resourceregistry/api/rest/AccessPath.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/AccessPath.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/AccessPath.java index 86de130..f80b6e0 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/AccessPath.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/AccessPath.java @@ -9,29 +9,30 @@ public class AccessPath { public static final String UUID_PATH_PARAM = "UUID"; public static final String CONTEXT_UUID_PATH_PARAM = "CONTEXT_UUID"; + public static final String ACCESS_PATH_PART = "access"; 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 String LIMIT_PARAM = "limit"; public static final int UNBOUNDED = -1; public static final int DEFAULT_LIMIT = 20; + public static final String FETCH_PLAN_PARAM = "fetchPlan"; + public static final String DEFAULT_FETCH_PLAN = "*:-1"; + + public static final String RESOURCE_TYPE_PATH_PART = "RESOURCE_TYPE_NAME"; + public static final String RELATION_TYPE_PATH_PART = "RELATION_TYPE_NAME"; + public static final String REFERENCE_TYPE_PATH_PART = "REFERENCE_TYPE_NAME"; + + public static final String REFERENCE = "reference"; public static final String POLYMORPHIC_PARAM = "polymorphic"; public static final String DIRECTION = "direction"; - @Deprecated - public static final String REFERENCE = "reference"; - @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"; - }