@Path(value="schemas") public interface SchemaService extends JAXRSService
PARAM_ANYTYPE_KIND, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_RESOURCE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(SchemaType type,
SchemaTO schemaTO)
Creates a new schema.
|
void |
delete(SchemaType type,
String key)
Deletes the schema matching the given type and key.
|
<T extends SchemaTO> |
read(SchemaType type,
String key)
Returns schema matching the given type and key.
|
<T extends SchemaTO> |
search(SchemaQuery query)
Returns a list of schemas matching the given query.
|
void |
update(SchemaType type,
SchemaTO schemaTO)
Updates the schema matching the given type and key.
|
@GET
@Path(value="{type}")
@Produces(value={"application/json","application/yaml","application/xml"})
<T extends SchemaTO> List<T> search(@BeanParam
SchemaQuery query)
T - actual SchemaTOquery - query conditions@GET
@Path(value="{type}/{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
<T extends SchemaTO> T read(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull @PathParam(value="key")
String key)
T - actual SchemaTOtype - type for schemas to be readkey - name of schema to be read@POST
@Path(value="{type}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
javax.ws.rs.core.Response create(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull
SchemaTO schemaTO)
type - type for schema to be createdschemaTO - schema to be created@PUT
@Path(value="{type}/{key}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
void update(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull
SchemaTO schemaTO)
type - type for schemas to be updatedschemaTO - updated schema to be stored@DELETE
@Path(value="{type}/{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
void delete(@NotNull @PathParam(value="type")
SchemaType type,
@NotNull @PathParam(value="key")
String key)
type - type for schema to be deletedkey - name of schema to be deletedCopyright © 2010–2020 The Apache Software Foundation. All rights reserved.