fix: resolve CLI API endpoint 404/405 errors

- Fix admin status command endpoint path and authentication
- Update CLI to use correct API prefix /api/v1
- Configure proper admin API key for authentication
- Update CLI checklist with working command status
- Add comprehensive API endpoint fixes documentation

Commands now working:
- admin status:  Fixed (API endpoint + authentication)
- blockchain status:  Working (uses local node)
- blockchain sync-status:  Working (uses local node)
- monitor dashboard:  Working (API endpoint functional)

All target CLI commands are now functional.
This commit is contained in:
oib
2026-03-05 13:32:13 +01:00
parent 0c090c96fa
commit 7d71ef27c8
3 changed files with 128 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ def status(ctx):
try:
with httpx.Client() as client:
response = client.get(
f"{config.coordinator_url}/admin/status",
f"{config.coordinator_url.rstrip('/')}/v1/admin/stats",
headers={"X-Api-Key": config.api_key or ""}
)