Architecture: ApiClient autoload (HTTP + JWT + error contract) #29

Merged
reviewer-bot merged 7 commits from agent/5b3da417b50c into main 2026-08-19 15:45:01 +00:00
Showing only changes of commit e06cd2a23d - Show all commits
+11 -4
View File
@@ -74,10 +74,17 @@ var timeout_seconds: float = 10.0
func _ready() -> void: func _ready() -> void:
_base_url = str(ProjectSettings.get_setting( # Environment variable override (e.g. for headless smoke tests against a
"application/agp/api_base_url", # backend on a non-default port). Falls back to the ProjectSetting, then
"http://127.0.0.1:8000" # to the documented default.
)).rstrip("/") var env_url := OS.get_environment("AGP_API_BASE_URL")
if env_url != "":
_base_url = env_url.rstrip("/")
else:
_base_url = str(ProjectSettings.get_setting(
"application/agp/api_base_url",
"http://127.0.0.1:8000"
)).rstrip("/")
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------