Skip to main content

api_base_url

Function api_base_url 

Source
pub fn api_base_url() -> String
Expand description

Return the CodingPlan REST API base URL, reading ATOMCODE_CODINGPLAN_API_BASE once at first call and caching the result for the process lifetime.

Read order:

  1. ATOMCODE_CODINGPLAN_API_BASE env var (trimmed, trailing / stripped, empty value treated as unset).
  2. [DEFAULT_API_BASE].