@Path(value="query-templates") public class QueryTemplateManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_TEMPLATE_NAME_PATH_PARAMETER |
| Constructor and Description |
|---|
QueryTemplateManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
all()
GET /query-templates
|
javax.ws.rs.core.Response |
delete(String queryTemplateName) |
String |
read(String queryTemplateName) |
String |
run(String queryTemplateName,
String params) |
javax.ws.rs.core.Response |
updateCreate(String queryTemplateName,
String json) |
public static final String QUERY_TEMPLATE_NAME_PATH_PARAMETER
@GET
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String all()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@PUT
@Path(value="{QUERY_TEMPLATE_NAME}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response updateCreate(@PathParam(value="QUERY_TEMPLATE_NAME")
String queryTemplateName,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@GET
@Path(value="{QUERY_TEMPLATE_NAME}")
@Produces(value="application/json;charset=UTF-8")
public String read(@PathParam(value="QUERY_TEMPLATE_NAME")
String queryTemplateName)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="{QUERY_TEMPLATE_NAME}")
@Produces(value="application/json;charset=UTF-8")
public String run(@PathParam(value="QUERY_TEMPLATE_NAME")
String queryTemplateName,
String params)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Path(value="{QUERY_TEMPLATE_NAME}")
public javax.ws.rs.core.Response delete(@PathParam(value="QUERY_TEMPLATE_NAME")
String queryTemplateName)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.