Skip to content

Commit

Permalink
Corrected parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
  • Loading branch information
soenkekueper committed Jan 17, 2021
1 parent b1f06f3 commit ee94c04
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ public Response getTriggers(@PathParam("ruleUID") @Parameter(description = "rule
@Produces(MediaType.APPLICATION_JSON)
@Operation(operationId = "getRuleSimulation", summary = "Simulates the executions for the rules within the schedule.", responses = {
@ApiResponse(responseCode = "200", description = "OK", content = @Content(array = @ArraySchema(schema = @Schema(implementation = RuleExecution.class)))) })
public Response simulateRules(@Parameter(description = "from") String from,
@Parameter(description = "from") String until) {
public Response simulateRules(@QueryParam("from") String from, @QueryParam("until") String until) {
final Stream<RuleExecution> ruleExecutions = ruleManager.simulateRuleExecutions(parseTime(from),
parseTime(until));
return Response.ok(ruleExecutions.collect(Collectors.toList())).build();
Expand Down

0 comments on commit ee94c04

Please sign in to comment.