Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#134] Add "payload_template" in "rest" and "scrape" function #141

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

jekalmin
Copy link
Owner

@jekalmin jekalmin commented Feb 8, 2024

Objective

Add payload_template in rest and scrape function.

Example

- spec:
    name: get_your_data
    description: Get your data
    parameters:
      type: object
      properties:
        foo:
          type: string
          description: Some interesting payload variable.
  function:
    type: rest
    method: POST
    resource: "https://YOUR_POST_API"
    payload_template: >-
      {"foo": "{{foo}}", "bar": "bar"}
    headers:
      "Content-Type": "application/json; charset=utf-8"
    value_template: '{{value_json}}'

@jekalmin jekalmin self-assigned this Feb 8, 2024
@jekalmin jekalmin added this to the 1.0.3 milestone Feb 8, 2024
@jekalmin jekalmin merged commit d2abd50 into v1.0.3 Feb 8, 2024
4 checks passed
@jekalmin jekalmin deleted the add-payload-template branch February 21, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant