Basesdk¶
basesdk
¶
Classes¶
EndpointConfig
dataclass
¶
EndpointConfig(
method: str,
path: str,
operation_id: str,
request: Any,
response_type: Type[T],
error_status_codes: List[str],
request_body_required: bool = False,
request_has_path_params: bool = False,
request_has_query_params: bool = True,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None,
retries: Any = (lambda: UNSET)(),
return_raw_json: bool = False,
get_serialized_body: Optional[
Callable[[], Optional[SerializedRequestBody]]
] = None,
user_agent_header: str = "user-agent",
accept_header_value: str = "application/json",
)
Configuration for an API endpoint, enabling sync/async factory pattern.
This dataclass captures all the configuration needed to execute an endpoint, allowing a single definition to generate both sync and async implementations.