Move AccessPath to manager I/O module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156263 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6c6657d741
commit
c7e06b968c
|
@ -1,5 +1,15 @@
|
||||||
package org.gcube.resourcemanagement.manager.io.rest;
|
package org.gcube.resourcemanagement.manager.io.rest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* REST paths exposed by the webapp.
|
||||||
|
*
|
||||||
|
* @author manuelesimi
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class AccessPath {
|
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";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import javax.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import javax.ws.rs.Produces;
|
||||||
import javax.ws.rs.QueryParam;
|
import javax.ws.rs.QueryParam;
|
||||||
|
|
||||||
import org.gcube.informationsystem.resourceregistry.api.rest.AccessPath;
|
import org.gcube.resourcemanagement.manager.io.rest.*;
|
||||||
import org.gcube.resourcemanagement.manager.webapp.ResourceInitializer;
|
import org.gcube.resourcemanagement.manager.webapp.ResourceInitializer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -26,7 +26,7 @@ public class Access {
|
||||||
public static final String TYPE_PATH_PARAM = "type";
|
public static final String TYPE_PATH_PARAM = "type";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* e.g. GET /resource-registry/access/schema/ContactFacet?polymorphic=true
|
* e.g. GET /resource-manager/access/schema/ContactFacet?polymorphic=true
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
@Path(AccessPath.SCHEMA_PATH_PART + "/{" + TYPE_PATH_PARAM + "}")
|
@Path(AccessPath.SCHEMA_PATH_PART + "/{" + TYPE_PATH_PARAM + "}")
|
||||||
|
|
Reference in New Issue