diff --git a/io/src/main/java/org/gcube/resourcemanagement/manager/io/rest/AccessPath.java b/io/src/main/java/org/gcube/resourcemanagement/manager/io/rest/AccessPath.java deleted file mode 100644 index a7fdf1b..0000000 --- a/io/src/main/java/org/gcube/resourcemanagement/manager/io/rest/AccessPath.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.gcube.resourcemanagement.manager.io.rest; - -/** - * REST paths exposed by the webapp. - * - * @author manuelesimi - * - */ -public class AccessPath { - - public static final String ACCESS_PATH_PART = "access"; - public static final String SCHEMA_PATH_PART = "schema"; - public static final String POLYMORPHIC_PARAM = "polymorphic"; - -} diff --git a/io/src/main/java/org/gcube/resourcemanagement/manager/io/rest/package-info.java b/io/src/main/java/org/gcube/resourcemanagement/manager/io/rest/package-info.java deleted file mode 100644 index e0ad978..0000000 --- a/io/src/main/java/org/gcube/resourcemanagement/manager/io/rest/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @author Manuele Simi (ISTI - CNR) - * - */ -package org.gcube.resourcemanagement.manager.io.rest; \ No newline at end of file diff --git a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rest/Access.java b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rest/Access.java deleted file mode 100644 index 0b2645e..0000000 --- a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rest/Access.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.gcube.resourcemanagement.manager.webapp.rest; - -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; - -import org.gcube.resourcemanagement.manager.io.rest.*; -import org.gcube.resourcemanagement.manager.webapp.ResourceInitializer; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * - * @author Manuele Simi (ISTI-CNR) - * - */ -@Path(AccessPath.ACCESS_PATH_PART) -public class Access { - - private static Logger logger = LoggerFactory.getLogger(Access.class); - - public static final String ID_PATH_PARAM = "id"; - public static final String TYPE_PATH_PARAM = "type"; - - /* - * e.g. GET /resource-manager/access/schema/ContactFacet?polymorphic=true - */ - @GET - @Path(AccessPath.SCHEMA_PATH_PART + "/{" + TYPE_PATH_PARAM + "}") - @Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8) - public String voidMethod(@PathParam(TYPE_PATH_PARAM) String type, - @QueryParam(AccessPath.POLYMORPHIC_PARAM) @DefaultValue("false") Boolean polymorphic) - { - logger.info("Requested Schema for type {}", type); - - return ""; - } -} diff --git a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rest/package-info.java b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rest/package-info.java deleted file mode 100644 index 905621f..0000000 --- a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rest/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @author Manuele Simi (ISTI - CNR) - * - */ -package org.gcube.resourcemanagement.manager.webapp.rest; \ No newline at end of file