Skip to content

Commit

Permalink
fix(rest api): specify request param names explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Apr 5, 2024
1 parent ceb13cf commit f1f0d25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -42,9 +42,9 @@ public InboundConnectorRestController(InboundConnectorManager inboundManager) {

@GetMapping("/inbound")
public List<ActiveInboundConnectorResponse> getActiveInboundConnectors(
@RequestParam(required = false) String bpmnProcessId,
@RequestParam(required = false) String elementId,
@RequestParam(required = false) String type) {
@RequestParam(required = false, value = "bpmnProcessId") String bpmnProcessId,
@RequestParam(required = false, value = "elementId") String elementId,
@RequestParam(required = false, value = "type") String type) {
var result =
inboundManager.query(new ActiveInboundConnectorQuery(bpmnProcessId, elementId, type));
return result.stream().map(this::mapToResponse).collect(Collectors.toList());

0 comments on commit f1f0d25

Please sign in to comment.