@ApplicationPath(value="schema") public class SchemaManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.informationsystem.resourceregistry.api.SchemaManagement |
schemaManager |
| Constructor and Description |
|---|
SchemaManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
registerConsistOfSchema(String jsonSchema)
e.g.
|
String |
registerEmbeddedTypeSchema(String jsonSchema)
e.g.
|
String |
registerFacetSchema(String jsonSchema)
e.g.
|
String |
registerRelatedToSchema(String jsonSchema)
e.g.
|
String |
registerResourceSchema(String jsonSchema)
e.g.
|
protected org.gcube.informationsystem.resourceregistry.api.SchemaManagement schemaManager
@PUT
@Path(value="embedded")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String registerEmbeddedTypeSchema(String jsonSchema)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
jsonSchema - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException@PUT
@Path(value="facet")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String registerFacetSchema(String jsonSchema)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
jsonSchema - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException@PUT
@Path(value="resource")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String registerResourceSchema(String jsonSchema)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
jsonSchema - jsonSchema - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException@PUT
@Path(value="consistOf")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String registerConsistOfSchema(String jsonSchema)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
jsonSchema - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException@PUT
@Path(value="relatedTo")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String registerRelatedToSchema(String jsonSchema)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
jsonSchema - org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionCopyright © 2016. All Rights Reserved.