curl --request GET \
--url https://api.myidvirtual.com/dashboard \
--header 'Authorization: <authorization>'{
"totalUsers": 1250,
"activeUsers": 980,
"totalServers": 15,
"activeServers": 12,
"totalSubscriptions": 850,
"activeSubscriptions": 720,
"totalRevenue": 45890.50,
"monthlyRevenue": 12450.00,
"recentTransactions": [
{
"id": "trans-123",
"amount": 29.90,
"status": "COMPLETED",
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"serverLoad": {
"average": 65,
"peak": 92,
"servers": [
{
"name": "BR-SP-001",
"load": 75
}
]
}
}
Retorna informações do painel administrativo
curl --request GET \
--url https://api.myidvirtual.com/dashboard \
--header 'Authorization: <authorization>'{
"totalUsers": 1250,
"activeUsers": 980,
"totalServers": 15,
"activeServers": 12,
"totalSubscriptions": 850,
"activeSubscriptions": 720,
"totalRevenue": 45890.50,
"monthlyRevenue": 12450.00,
"recentTransactions": [
{
"id": "trans-123",
"amount": 29.90,
"status": "COMPLETED",
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"serverLoad": {
"average": 65,
"peak": 92,
"servers": [
{
"name": "BR-SP-001",
"load": 75
}
]
}
}
{
"totalUsers": 1250,
"activeUsers": 980,
"totalServers": 15,
"activeServers": 12,
"totalSubscriptions": 850,
"activeSubscriptions": 720,
"totalRevenue": 45890.50,
"monthlyRevenue": 12450.00,
"recentTransactions": [
{
"id": "trans-123",
"amount": 29.90,
"status": "COMPLETED",
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"serverLoad": {
"average": 65,
"peak": 92,
"servers": [
{
"name": "BR-SP-001",
"load": 75
}
]
}
}
curl --location 'http://localhost:3333/dashboard' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'