mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 14:12:24 -05:00
Update to support new features (#70)
This commit is contained in:
parent
73c99818fa
commit
3624c920ed
9 changed files with 121 additions and 4308 deletions
|
|
@ -18,6 +18,7 @@ export class ExampleNode implements INodeType {
|
|||
},
|
||||
inputs: [NodeConnectionType.Main],
|
||||
outputs: [NodeConnectionType.Main],
|
||||
usableAsTool: true,
|
||||
properties: [
|
||||
// Node properties which the user gets displayed and
|
||||
// can change on the node.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import { INodeType, INodeTypeDescription, NodeConnectionType } from 'n8n-workflow';
|
||||
import { httpVerbFields, httpVerbOperations } from './HttpVerbDescription';
|
||||
|
||||
export class HttpBin implements INodeType {
|
||||
|
|
@ -13,8 +13,8 @@ export class HttpBin implements INodeType {
|
|||
defaults: {
|
||||
name: 'HttpBin',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
inputs: [NodeConnectionType.Main],
|
||||
outputs: [NodeConnectionType.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'httpbinApi',
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export const httpVerbOperations: INodeProperties[] = [
|
|||
name: 'GET',
|
||||
value: 'get',
|
||||
description: 'Perform a GET request',
|
||||
action: 'Perform a GET request',
|
||||
routing: {
|
||||
request: {
|
||||
method: 'GET',
|
||||
|
|
@ -29,6 +30,7 @@ export const httpVerbOperations: INodeProperties[] = [
|
|||
name: 'DELETE',
|
||||
value: 'delete',
|
||||
description: 'Perform a DELETE request',
|
||||
action: 'Perform a DELETE request',
|
||||
routing: {
|
||||
request: {
|
||||
method: 'DELETE',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue