Module api_base

Module api_base 

Source
Expand description

Base API configuration and URL management

STATUS: FUTURE-USE MODULE - Foundation for remote service integration

This module provides foundational API configuration that will be activated when Terminal Jarvis connects to remote services for tool discovery and metadata.

§Purpose

The ApiBase struct centralizes all HTTP client configuration, including:

  • Base URL management for different environments
  • Timeout and retry logic configuration
  • Connection pooling settings
  • Authentication endpoint configuration

§Future Usage Example

let api_config = ApiBase::new()
    .with_base_url("https://api.terminal-jarvis.dev")
    .with_timeout(60)
    .with_max_retries(5);

let client = ApiClient::with_config(api_config);

Modules§

routes
API route definitions

Structs§

ApiBase
Base configuration for API clients