@Path(value="types") public class TypeManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_PATH_PARAMETER |
| Constructor and Description |
|---|
TypeManager() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String typeName,
String json) |
String |
read(String type,
Boolean polymorphic) |
public static final String TYPE_PATH_PARAMETER
@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 typeName,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.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.types.SchemaNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.