bw_hestia_bridge.hestia_api.base_api
Attributes
Functions
|
Query the Hestia API. |
Module Contents
- bw_hestia_bridge.hestia_api.base_api.hestia_request(endpoint: str, staging: bool, query: dict | None = None, req_type: Literal['get', 'post'] = 'get') dict[source]
Query the Hestia API.
- Parameters:
endpoint (str) – The API endpoint (e.g. “search”).
staging (bool) – Whether to use the staging API.
query (dict, optional (default: None)) – Additional queries (passed via something like “?q1=v1&q2=v2”).
req_type (str, "get" or "post") – The type of request that will be performed.