genos.api.health
Classes
|
Base class for all Genos API endpoints with token validation and error handling. |
|
Wrapper class for the Health Check API endpoint. |
- class BaseAPI(session: Session, base_url: str, timeout: int = 30)[source]
Bases:
ABCBase class for all Genos API endpoints with token validation and error handling.
This class provides common functionality for all API endpoints, including: - Token validation and authentication error handling - Payment/credit insufficiency checking - Standardized error response handling - HTTP status code validation
Only responses with status code 200 are considered successful and will proceed to further analysis. All other status codes will raise appropriate exceptions with the received error message.