Skip to content

RequestConnector: support query params for requests and subrequests#2092

Open
maghibus wants to merge 2 commits intothingsboard:masterfrom
maghibus:qp
Open

RequestConnector: support query params for requests and subrequests#2092
maghibus wants to merge 2 commits intothingsboard:masterfrom
maghibus:qp

Conversation

@maghibus
Copy link

Extend the Request Connector to pass query parameters for both main requests and subrequests, including template substitution for subrequests.

What changed

  • Added support for queryParameters in request configs and subrequest configs.
  • Subrequest query params support tag replacement using the current data item.
  • Request execution now includes params when query parameters are provided.
  • Additional debug logging for request method/headers/params/data.
  • Safer handling when subrequest processing returns a non-dict result.

Why

  • Enables request/subrequest URLs to be parameterized without encoding values into the URL string.
  • Improves flexibility for integrating with APIs that require query parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant