Rename voidMethod to create in Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158758 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3d2aea155e
commit
01b55f0327
|
@ -13,6 +13,7 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Methods for Context operations.
|
||||
*
|
||||
* @author Manuele Simi (ISTI-CNR)
|
||||
*
|
||||
|
@ -26,12 +27,12 @@ public class Context {
|
|||
public static final String TYPE_PATH_PARAM = "type";
|
||||
|
||||
/*
|
||||
* e.g. GET /resource-manager/access/schema/ContactFacet?polymorphic=true
|
||||
* e.g. GET /resource-manager/context/create
|
||||
*/
|
||||
@GET
|
||||
@Path(ContextPath.SCHEMA_PATH_PART + "/{" + TYPE_PATH_PARAM + "}")
|
||||
@Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8)
|
||||
public String voidMethod(@PathParam(TYPE_PATH_PARAM) String type,
|
||||
public String create(@PathParam(TYPE_PATH_PARAM) String type,
|
||||
@QueryParam(ContextPath.POLYMORPHIC_PARAM) @DefaultValue("false") Boolean polymorphic)
|
||||
{
|
||||
logger.info("Requested Schema for type {}", type);
|
||||
|
|
Loading…
Reference in New Issue