mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2024-11-22 03:41:00 -05:00
0cc64a5579
* support newline escaping
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: 'HTTP Request Action'
|
|
description: 'Create any HTTP Request'
|
|
inputs:
|
|
url:
|
|
description: 'Request URL'
|
|
required: true
|
|
method:
|
|
description: 'Request Method'
|
|
required: false
|
|
default: 'POST'
|
|
contentType:
|
|
description: 'Content Type'
|
|
required: false
|
|
default: 'application/json'
|
|
data:
|
|
description: 'Request Body as JSON String'
|
|
required: false
|
|
default: '{}'
|
|
username:
|
|
description: 'Auth Username'
|
|
required: false
|
|
password:
|
|
description: 'Auth Password'
|
|
required: false
|
|
timeout:
|
|
description: 'Request Timeout in Sec'
|
|
required: false
|
|
default: '5000'
|
|
bearerToken:
|
|
description: 'Bearer Authentication Token'
|
|
required: false
|
|
customHeaders:
|
|
description: 'Custom HTTP Headers'
|
|
required: false
|
|
preventFailureOnNoResponse:
|
|
description: 'Prevent this Action to fail if the request respond without an response'
|
|
required: false
|
|
escapeData:
|
|
description: 'Escape newlines in data string content'
|
|
required: false
|
|
outputs:
|
|
response:
|
|
description: 'HTTP Response Content'
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|