Skip to content

Latest commit

 

History

History
145 lines (97 loc) · 3.51 KB

File metadata and controls

145 lines (97 loc) · 3.51 KB

ConnectionTypesApi

All URIs are relative to https://app.hotdata.dev

Method HTTP request Description
getConnectionType GET /v1/connection-types/{name} Get connection type details
listConnectionTypes GET /v1/connection-types List connection types

getConnectionType

ConnectionTypeDetail getConnectionType(name)

Get connection type details

Get configuration schema and authentication requirements for a specific connection type.

Example

import {
  Configuration,
  ConnectionTypesApi,
} from '@hotdata/sdk';
import type { GetConnectionTypeRequest } from '@hotdata/sdk';

async function example() {
  console.log("🚀 Testing @hotdata/sdk SDK...");
  const config = new Configuration({ 
    // Configure HTTP bearer authorization: BearerAuth
    accessToken: "YOUR BEARER TOKEN",
  });
  const api = new ConnectionTypesApi(config);

  const body = {
    // string | Connection type name (e.g. postgres, mysql, snowflake)
    name: name_example,
  } satisfies GetConnectionTypeRequest;

  try {
    const data = await api.getConnectionType(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

Name Type Description Notes
name string Connection type name (e.g. postgres, mysql, snowflake) [Defaults to undefined]

Return type

ConnectionTypeDetail

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Connection type details -
404 Unknown connection type -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listConnectionTypes

ListConnectionTypesResponse listConnectionTypes()

List connection types

List all available connection types, including native sources and FlightDLT services.

Example

import {
  Configuration,
  ConnectionTypesApi,
} from '@hotdata/sdk';
import type { ListConnectionTypesRequest } from '@hotdata/sdk';

async function example() {
  console.log("🚀 Testing @hotdata/sdk SDK...");
  const config = new Configuration({ 
    // Configure HTTP bearer authorization: BearerAuth
    accessToken: "YOUR BEARER TOKEN",
  });
  const api = new ConnectionTypesApi(config);

  try {
    const data = await api.listConnectionTypes();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

This endpoint does not need any parameter.

Return type

ListConnectionTypesResponse

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Available connection types -

[Back to top] [Back to API list] [Back to Model list] [Back to README]