Skip to content

Commit

Permalink
Update client methods
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Dec 3, 2024
1 parent 120a6a2 commit 604587b
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -947,23 +947,19 @@ def _make_request(

def get_connections(self) -> Mapping[str, Any]:
"""Fetches all connections of an Airbyte workspace from the Airbyte API."""
return check.not_none(
self._make_request(
method="GET",
endpoint="connections",
base_url=self.api_base_url,
data={"workspaceIds": [self.workspace_id]},
)
return self._make_request(
method="GET",
endpoint="connections",
base_url=self.api_base_url,
data={"workspaceIds": [self.workspace_id]},
)

def get_destination_details(self, destination_id: str) -> Mapping[str, Any]:
"""Fetches details about a given destination from the Airbyte API."""
return check.not_none(
self._make_request(
method="GET",
endpoint=f"destinations/{destination_id}",
base_url=self.api_base_url,
)
return self._make_request(
method="GET",
endpoint=f"destinations/{destination_id}",
base_url=self.api_base_url,
)


Expand Down

0 comments on commit 604587b

Please sign in to comment.