Class ConfigureAutomationResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.automation.impl.action.ConfigureAutomationResource
- All Implemented Interfaces:
RestResource
@Path("/automation/actions/configureAutomation/{key}")
public class ConfigureAutomationResource
extends AbstractRestResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorsConstructorDescriptionConfigureAutomationResource
(PersistenceService persistenceService, EntityBeanRebinder entityBeanRebinder, ValidationResultPrinter validationResultPrinter) -
Method Summary
Modifier and TypeMethodDescriptiongetConfigs
(String key) jakarta.ws.rs.core.Response
save
(String key, ConfigureAutomationResource.SaveBean saveBean) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
ConfigureAutomationResource
public ConfigureAutomationResource(PersistenceService persistenceService, EntityBeanRebinder entityBeanRebinder, ValidationResultPrinter validationResultPrinter)
-
-
Method Details
-
getConfigs
@GET @Produces("application/json") public ConfigureAutomationResource.AutomationConfigsBean getConfigs(@PathParam("key") String key) -
save
@PUT @Consumes("application/json") public jakarta.ws.rs.core.Response save(@PathParam("key") String key, ConfigureAutomationResource.SaveBean saveBean)
-