Interface ImplementationService
- All Superinterfaces:
JAXRSService
- All Known Implementing Classes:
ImplementationServiceImpl
REST operations for implementations.
-
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 TypeMethodDescriptioncreate
(@NotNull ImplementationTO implementationTO) Creates a new implementation.Deletes the implementation matching the given key and type.Returns a list of all implementations of the given type.Returns implementation with matching type and key.update
(@NotNull ImplementationTO implementationTO) Updates an existing implementation.
-
Method Details
-
list
@GET @Path("{type}") @Produces({"application/json","application/yaml","application/xml"}) List<ImplementationTO> list(@NotNull @PathParam("type") @NotNull String type) Returns a list of all implementations of the given type.- Parameters:
type
- implementation type- Returns:
- list of all implementations.
-
read
@GET @Path("{type}/{key}") @Produces({"application/json","application/yaml","application/xml"}) ImplementationTO read(@NotNull @PathParam("type") @NotNull String type, @NotNull @PathParam("key") @NotNull String key) Returns implementation with matching type and key.- Parameters:
type
- implementation typekey
- key of implementation to be read- Returns:
- implementation with matching key
-
create
@POST @Path("{type}/{key}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) Response create(@NotNull @NotNull ImplementationTO implementationTO) Creates a new implementation.- Parameters:
implementationTO
- implementation.- Returns:
- Response object featuring Location header of created implementation
-
update
@PUT @Path("{type}/{key}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) Response update(@NotNull @NotNull ImplementationTO implementationTO) Updates an existing implementation.- Parameters:
implementationTO
- implementation.- Returns:
- an empty response if operation was successful
-
delete
@DELETE @Path("{type}/{key}") @Produces({"application/json","application/yaml","application/xml"}) Response delete(@NotNull @PathParam("type") @NotNull String type, @NotNull @PathParam("key") @NotNull String key) Deletes the implementation matching the given key and type.- Parameters:
type
- implementation typekey
- key for implementation to be deleted- Returns:
- an empty response if operation was successful
-