GET
/api
Stato API
Verifica che l'API sia operativa.
Restituisce lo stato del servizio, la versione, la connessione al database e l'elenco degli endpoint. È utile come health check.
Autenticazione richiesta: header X-Api-Token con il tuo token.
Questo endpoint non ha parametri.
Risposte
200
Servizio operativo
{
"success": true,
"status": "operational",
"version": "1.1.0",
"api": "SHORTME API",
"database": "connected",
"timestamp": "2026-01-15 10:30:00"
}
curl -X GET "https://short.micheleg.me/api" \
-H "X-Api-Token: YOUR_API_TOKEN"
const response = await fetch('https://short.micheleg.me/api', {
method: 'GET',
headers: {
'X-Api-Token': 'YOUR_API_TOKEN'
}
});
const data = await response.json();
console.log(data);
import requests
response = requests.request(
"GET",
"https://short.micheleg.me/api",
headers={"X-Api-Token": "YOUR_API_TOKEN"}
)
print(response.json())
<?php
$ch = curl_init('https://short.micheleg.me/api');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-Api-Token: YOUR_API_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($data);
Prova
invia una richiesta reale
© 2026 short.micheleg.me