mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 14:12:24 -05:00
⚡ Create New HttpBin Declarative Node
This commit is contained in:
parent
1bb7f88a6e
commit
380b617a5f
4 changed files with 112 additions and 0 deletions
34
nodes/HttpBin/HttpBin.node.ts
Normal file
34
nodes/HttpBin/HttpBin.node.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import { INodeType, INodeTypeDescription } from "n8n-workflow";
|
||||
|
||||
export class HttpBin implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: "HttpBin",
|
||||
name: "httpbin",
|
||||
icon: "file:httpbin.svg",
|
||||
group: ["transform"],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: "Interact with HttpBin API",
|
||||
defaults: {
|
||||
name: "Sendinblue",
|
||||
color: "#044a75",
|
||||
},
|
||||
inputs: ["main"],
|
||||
outputs: ["main"],
|
||||
credentials: [
|
||||
{
|
||||
name: "sendinblueApi",
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
requestDefaults: {
|
||||
baseURL: "={{$credentials.domain}}",
|
||||
url: "",
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
},
|
||||
properties: [],
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue