@Path(value="schemas") public interface SchemaService extends JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(@NotNull SchemaType type,
@NotNull SchemaTO schemaTO)
Creates a new schema.
|
void |
delete(@NotNull SchemaType type,
@NotNull String key)
Deletes the schema matching the given type and key.
|
<T extends SchemaTO> |
read(@NotNull SchemaType type,
@NotNull 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(@NotNull SchemaType type,
@NotNull 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") @NotNull SchemaType type, @NotNull @PathParam(value="key") @NotNull 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") @NotNull SchemaType type, @NotNull @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") @NotNull SchemaType type, @NotNull @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") @NotNull SchemaType type, @NotNull @PathParam(value="key") @NotNull String key)
type
- type for schema to be deletedkey
- name of schema to be deletedCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.