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:
@@ -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 ""}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user