mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 06:02:25 -05:00
35 lines
757 B
TypeScript
35 lines
757 B
TypeScript
|
|
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: [],
|
||
|
|
};
|
||
|
|
}
|