{
  "name": "metabase",
  "display_name": "Metabase",
  "description": "Use the Metabase API",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "metabaseApi",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "options",
      "required": false,
      "default": "questions"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/nodes-base/nodes/Metabase/Metabase.node.ts",
  "routing": {
    "base_url": "={{$credentials.url.replace(new RegExp(",
    "auth_headers": [
      [
        "X-Metabase-Session",
        "{{sessionToken}}"
      ]
    ],
    "auth_query": [],
    "credential_name": "metabaseApi",
    "operations": [
      {
        "value": "get",
        "method": "GET",
        "url": "{{",
        "body": ""
      },
      {
        "value": "getAll",
        "method": "GET",
        "url": "/api/card/",
        "body": ""
      },
      {
        "value": "resultData",
        "method": "POST",
        "url": "{{",
        "body": ""
      },
      {
        "value": "addNewDatasource",
        "method": "POST",
        "url": "/api/database",
        "body": ""
      },
      {
        "value": "getFields",
        "method": "GET",
        "url": "{{",
        "body": ""
      }
    ],
    "sends": [
      {
        "param_name": "Sqlite",
        "send_type": "body",
        "dest_key": "engine",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "host",
        "send_type": "body",
        "dest_key": "details.host",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "name",
        "send_type": "body",
        "dest_key": "name",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "port",
        "send_type": "body",
        "dest_key": "details.port",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "user",
        "send_type": "body",
        "dest_key": "details.user",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "password",
        "send_type": "body",
        "dest_key": "details.password",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "dbName",
        "send_type": "body",
        "dest_key": "details.db",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "filePath",
        "send_type": "body",
        "dest_key": "details.db",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      },
      {
        "param_name": "fullSync",
        "send_type": "body",
        "dest_key": "is_full_sync",
        "applies_to_operations": [
          "addNewDatasource"
        ],
        "applies_to_resources": [
          "databases"
        ]
      }
    ]
  }
}