ToolJet/plugins/packages/n8n/lib/operations.json
Muhsin Shah C P 2cc788ab6c
Feature/plugin: n8n integration 🔥 (#2227)
* Integrated new n8n datasource [initial]

* Resolved some bugs

* Added a dropdown for auth type
- changed sensitive fields to encrypted
- Added basic & header auth

* Added changes
- Plugin icon
- Removed ecrypted option from username
- Chnaged some placeholder text and field names

* Changed datasource fields
- Removed host from datasource modal
- Added url field to operations
- Changed operation names

* Redesigned dynamic list

* changed error message

* Changed icon

* Added helpText to dropdown-flip component

* Cleaning code

* Cleaning code

* Added n8n documentation

* Edited hint text
2022-02-21 23:37:09 +05:30

69 lines
No EOL
1.8 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
"title": "N8n datasource",
"description": "A schema defining N8n datasource",
"type": "api",
"defaults": {},
"properties": {
"method": {
"label": "Method",
"key": "method",
"className":"col-md-4",
"type": "dropdown-component-flip",
"description": "Single request type",
"list": [
{
"value": "get",
"name": "GET"
},
{
"value": "post",
"name": "POST"
}
],
"commonFields":{
"url":{
"label": "Webhook URL",
"key": "url",
"type": "codehinter",
"lineNumbers": false,
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "webhook URL of your workflow",
"description": "Field for url"
}
}
},
"get":{
"parameters": {
"label": "URL parameters",
"key": "url_params",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ \"name\": \"bob\" }",
"description": "Enter options",
"height": "150px"
}
},
"post":{
"parameters": {
"label": "URL parameters",
"key": "url_params",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ \"name\": \"bob\" }",
"description": "Enter url parameters",
"height": "150px"
},
"body": {
"label": "Body",
"key": "body",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ \"age\": \"12\" }",
"description": "Enter body parameters",
"height": "150px"
}
}
}
}