Interface AnyTypeService
- All Superinterfaces:
JAXRSService
REST operations for any types.
-
Field Summary
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseCreates a new anyType.voidDeletes the anyType matching the provided key.list()Returns a list of all anyTypes.Returns anyType with matching key.voidUpdates the anyType matching the provided key.
-
Method Details
-
list
Returns a list of all anyTypes.- Returns:
- list of all anyTypes.
-
read
@GET @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) AnyTypeTO read(@NotNull @PathParam("key") @NotNull String key) Returns anyType with matching key.- Parameters:
key- anyType key to be read- Returns:
- anyType with matching key
-
create
@POST @Consumes({"application/json","application/yaml","application/xml"}) jakarta.ws.rs.core.Response create(@NotNull @NotNull AnyTypeTO anyTypeTO) Creates a new anyType.- Parameters:
anyTypeTO- anyType to be created- Returns:
- Response object featuring Location header of created anyType
-
update
@PUT @Path("{key}") @Consumes({"application/json","application/yaml","application/xml"}) void update(@NotNull @NotNull AnyTypeTO anyTypeTO) Updates the anyType matching the provided key.- Parameters:
anyTypeTO- anyType to be stored
-
delete
@DELETE @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) void delete(@NotNull @PathParam("key") @NotNull String key) Deletes the anyType matching the provided key.- Parameters:
key- anyType key to be deleted
-