@ApplicationPath(value="schema") public class SchemaManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_PATH_PARAM |
| Constructor and Description |
|---|
SchemaManager() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String type,
String json)
e.g.
|
String |
read(String type,
Boolean polymorphic) |
public static final String TYPE_PATH_PARAM
@PUT
@Path(value="{type}")
@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")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
type - json - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@GET
@Path(value="{type}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String read(@PathParam(value="type")
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 © 2017. All Rights Reserved.