mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
Thing action REST API: allow extended scope like bindingid-xxx (#4495)
It is required for actions from the max binding. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
241e55f157
commit
a05aca6c79
@ -219,7 +219,7 @@ public class ThingActionsResource implements RESTResource {
|
||||
@RolesAllowed({ Role.USER, Role.ADMIN })
|
||||
// accept actionUid in the form of "scope.actionTypeUid" or "scope.actionTypeUid#signatureHash"
|
||||
// # is URL encoded as %23
|
||||
@Path("/{thingUID}/{actionUid: [a-zA-Z0-9]+\\.[a-zA-Z0-9]+(%23[A-Fa-f0-9]+)?}")
|
||||
@Path("/{thingUID}/{actionUid: [a-zA-Z0-9]+(\\-[a-zA-Z0-9]+)?\\.[a-zA-Z0-9]+(%23[A-Fa-f0-9]+)?}")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Operation(operationId = "executeThingAction", summary = "Executes a thing action.", responses = {
|
||||
|
Loading…
Reference in New Issue
Block a user