Skip to content

URL Parametrization for HTTP triggerΒ #3900

@artesia-admin

Description

@artesia-admin

Is your feature request related to a problem? Please describe.
I don't know how to call urls like this: https://example.com/v1/users/{{.Input.body.userID}}. I need to substitute values from message into trigger url

Describe the solution you'd like
Anything that can substitute parameters in URL. Example 1 (with parameters):

      parameters:
      - src:
          dependencyName: depCustomerio
          dataTemplate: "https://example.com/v1/users/{{.Input.body.userID}}"
        dest: http.url

Example 2 (without parameters):

      http:
        method: POST
        url: 'https://example.com/v1/users/{{.Input.body.userID}}'

Additional context
url field there is mandatory and Example 1 gives an error "template customerio is invalid, server URL is not specified". Example 2 does not substitute anything at all.


Message from the maintainers:

If you wish to see this enhancement implemented please add a πŸ‘ reaction to this issue! We often sort issues this way to know what to prioritize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions