diff --git a/credentials/HttpBinApi.credentials.ts b/credentials/HttpBinApi.credentials.ts index d45f6d9..7ea34f2 100644 --- a/credentials/HttpBinApi.credentials.ts +++ b/credentials/HttpBinApi.credentials.ts @@ -28,14 +28,14 @@ export class HttpBinApi implements ICredentialType { // stating how this credential is injected as part of the request // An example is the Http Request node that can make generic calls // reusing this credential - authenticate = { + authenticate: IAuthenticateGeneric = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.token}}', }, }, - } as IAuthenticateGeneric; + }; // The block below tells how this credential can be tested test: ICredentialTestRequest = { diff --git a/nodes/HttpBin/HttpVerbDescription.ts b/nodes/HttpBin/HttpVerbDescription.ts index c025130..34a9864 100644 --- a/nodes/HttpBin/HttpVerbDescription.ts +++ b/nodes/HttpBin/HttpVerbDescription.ts @@ -45,10 +45,10 @@ export const httpVerbOperations: INodeProperties[] = [ // We do that by adding `operation: ["get"]` to `displayOptions.show` const getOperation: INodeProperties[] = [ { + displayName: 'Type of Data', name: 'typeofData', default: 'queryParameter', description: 'Select type of data to send [Query Parameters]', - displayName: 'Type of Data', displayOptions: { show: { resource: ['httpVerb'], @@ -65,10 +65,10 @@ const getOperation: INodeProperties[] = [ required: true, }, { + displayName: 'Query Parameters', name: 'arguments', default: {}, description: "The request's query parameters", - displayName: 'Query Parameters', displayOptions: { show: { resource: ['httpVerb'], @@ -116,10 +116,10 @@ const getOperation: INodeProperties[] = [ // We do that by adding `operation: ["delete"]` to `displayOptions.show` const deleteOperation: INodeProperties[] = [ { + displayName: 'Type of Data', name: 'typeofData', default: 'queryParameter', description: 'Select type of data to send [Query Parameter Arguments, JSON-Body]', - displayName: 'Type of Data', displayOptions: { show: { resource: ['httpVerb'], @@ -140,10 +140,10 @@ const deleteOperation: INodeProperties[] = [ type: 'options', }, { + displayName: 'Query Parameters', name: 'arguments', default: {}, description: "The request's query parameters", - displayName: 'Query Parameters', displayOptions: { show: { resource: ['httpVerb'], @@ -187,10 +187,10 @@ const deleteOperation: INodeProperties[] = [ }, }, { + displayName: 'JSON Object', name: 'arguments', default: {}, description: "The request's JSON properties", - displayName: 'JSON Object', displayOptions: { show: { resource: ['httpVerb'],