const response = await fetch('http://100.81.138.77:8000/api/v1/auth/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ username: 'admin', password: 'admin123' }) }); const auth = await response.json(); const token = auth.access_token; console.log('1. Testing /api/v1/configuration/servers/gcore\n'); const gcoreResp = await fetch('http://100.81.138.77:8000/api/v1/configuration/servers/gcore', { headers: { 'Authorization': `Bearer ${token}` } }); const gcoreData = await gcoreResp.text(); console.log('Status:', gcoreResp.status); console.log('Body:', gcoreData.substring(0, 300)); const gcoreParsed = JSON.parse(gcoreData); console.log('Type:', Array.isArray(gcoreParsed) ? 'Array' : 'Object'); if (!Array.isArray(gcoreParsed)) console.log('Keys:', Object.keys(gcoreParsed)); console.log('\n2. Testing /api/v1/configuration/servers/geviscope\n'); const geviscopeResp = await fetch('http://100.81.138.77:8000/api/v1/configuration/servers/geviscope', { headers: { 'Authorization': `Bearer ${token}` } }); const geviscopeData = await geviscopeResp.text(); console.log('Status:', geviscopeResp.status); console.log('Body:', geviscopeData.substring(0, 300)); const geviscopeParsed = JSON.parse(geviscopeData); console.log('Type:', Array.isArray(geviscopeParsed) ? 'Array' : 'Object'); if (!Array.isArray(geviscopeParsed)) console.log('Keys:', Object.keys(geviscopeParsed));