getEndpointsByIdConnectionsDescribe method

Future<GetEndpointsByIdConnectionsDescribe200Response?> getEndpointsByIdConnectionsDescribe(
  1. String companyId,
  2. String connectionId
)

Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to include

Parameters:

  • String companyId (required): Unique identifier for the Company

  • String connectionId (required): Unique identifier for the Connection

Implementation

Future<GetEndpointsByIdConnectionsDescribe200Response?> getEndpointsByIdConnectionsDescribe(String companyId, String connectionId,) async {
  final response = await getEndpointsByIdConnectionsDescribeWithHttpInfo(companyId, connectionId,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEndpointsByIdConnectionsDescribe200Response',) as GetEndpointsByIdConnectionsDescribe200Response;

  }
  return null;
}