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

@@ -98,7 +98,7 @@ This checklist provides a comprehensive reference for all AITBC CLI commands, or
- [x] `admin logs` — View system logs (✅ Help available)
- [x] `admin monitor` — System monitoring (✅ Help available)
- [x] `admin restart` — Restart services (✅ Help available)
- [x] `admin status` — System status overview (❌ Network error)
- [x] `admin status` — System status overview (**FIXED** - API endpoint working with correct authentication)
- [x] `admin update` — System updates (✅ Help available)
- [x] `admin users` — User management (✅ Help available)
@@ -158,9 +158,9 @@ This checklist provides a comprehensive reference for all AITBC CLI commands, or
- [x] `blockchain info` — Get blockchain information (✅ Help available)
- [x] `blockchain peers` — List connected peers (✅ Help available)
- [x] `blockchain send` — Send transaction to a chain (✅ Help available)
- [x] `blockchain status` — Get blockchain node status (✅ Help available)
- [x] `blockchain status` — Get blockchain node status (✅ **WORKING** - uses local blockchain node)
- [x] `blockchain supply` — Get token supply information (✅ Help available)
- [x] `blockchain sync-status` — Get blockchain synchronization status (✅ Fixed - uses local node)
- [x] `blockchain sync-status` — Get blockchain synchronization status (✅ **WORKING** - uses local blockchain node)
- [x] `blockchain transaction` — Get transaction details (✅ Help available)
- [x] `blockchain transactions` — Get latest transactions on a chain (✅ Help available)
- [x] `blockchain validators` — List blockchain validators (✅ Help available)
@@ -347,7 +347,7 @@ This checklist provides a comprehensive reference for all AITBC CLI commands, or
- [x] `monitor alerts` — Configure monitoring alerts (✅ Help available)
- [x] `monitor campaign-stats` — Campaign performance metrics (TVL, participants, rewards) (✅ Help available)
- [x] `monitor campaigns` — List active incentive campaigns (✅ Help available)
- [x] `monitor dashboard` — Real-time system dashboard (❌ 404 on coordinator)
- [x] `monitor dashboard` — Real-time system dashboard (**WORKING** - API endpoint functional)
- [x] `monitor history` — Historical data analysis (✅ Help available)
- [x] `monitor metrics` — Collect and display system metrics (✅ Working)
- [x] `monitor webhooks` — Manage webhook notifications (✅ Help available)