Class TypeManager


  • @Path("types")
    public class TypeManager
    extends BaseRest
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • TypeManager

        public TypeManager()
    • 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.SchemaException
        org.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.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException