UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

57 lines 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DfirIrisApi = void 0; class DfirIrisApi { name = 'dfirIrisApi'; displayName = 'DFIR-IRIS API'; documentationUrl = 'dfiriris'; icon = { light: 'file:icons/DfirIris.svg', dark: 'file:icons/DfirIris.svg' }; httpRequestNode = { name: 'DFIR-IRIS', docsUrl: 'https://docs.dfir-iris.org/operations/api/', apiBaseUrlPlaceholder: 'http://<yourserver_ip>/manage/cases/list', }; properties = [ { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: '', placeholder: 'e.g. https://localhost', description: 'The API endpoints are reachable on the same Address and port as the web interface.', required: true, }, { displayName: 'API Key', name: 'apiKey', required: true, type: 'string', typeOptions: { password: true }, default: '', }, { displayName: 'Ignore SSL Issues (Insecure)', name: 'skipSslCertificateValidation', type: 'boolean', default: false, }, ]; authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}', }, }, }; test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/api/ping', method: 'GET', skipSslCertificateValidation: '={{$credentials.skipSslCertificateValidation}}', }, }; } exports.DfirIrisApi = DfirIrisApi; //# sourceMappingURL=DfirIrisApi.credentials.js.map