Class TypeManager
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.rest.TypeManager
-
@Path("types") public class TypeManager extends Object- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_PATH_PARAMETER
-
Constructor Summary
Constructors Constructor Description TypeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(String typeName, String json)Stringread(String type, Boolean polymorphic)
-
-
-
Field Detail
-
TYPE_PATH_PARAMETER
public static final String TYPE_PATH_PARAMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
@PUT @Path("{TYPE_NAME}") @Consumes({"text/plain","application/json;charset=UTF-8"}) @Produces("application/json;charset=UTF-8") public javax.ws.rs.core.Response create(@PathParam("TYPE_NAME") String typeName, String json) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
read
@GET @Path("{TYPE_NAME}") @Produces("application/json;charset=UTF-8") public String read(@PathParam("TYPE_NAME") String type, @QueryParam("polymorphic") @DefaultValue("false") Boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-