@Path(value="types") public class SchemaManager extends Object
| Constructor and Description |
|---|
SchemaManager() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String type,
String json) |
String |
read(String type,
Boolean polymorphic) |
protected void |
setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type) |
protected void |
setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
Boolean polymorphic) |
protected void setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type)
protected void setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
Boolean polymorphic)
@PUT
@Path(value="{TYPE_NAME}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response create(@PathParam(value="TYPE_NAME")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@GET
@Path(value="{TYPE_NAME}")
@Produces(value="application/json;charset=UTF-8")
public String read(@PathParam(value="TYPE_NAME")
String type,
@QueryParam(value="polymorphic") @DefaultValue(value="false")
Boolean polymorphic)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2020. All Rights Reserved.