curl --request GET \
--url https://api.myidvirtual.com/warning \
--header 'Authorization: <authorization>'[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Manutenção Programada",
"message": "Sistema em manutenção das 02:00 às 04:00",
"type": "INFO",
"show": true,
"priority": 3,
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
Retorna lista de avisos com filtros opcionais
curl --request GET \
--url https://api.myidvirtual.com/warning \
--header 'Authorization: <authorization>'[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Manutenção Programada",
"message": "Sistema em manutenção das 02:00 às 04:00",
"type": "INFO",
"show": true,
"priority": 3,
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Manutenção Programada",
"message": "Sistema em manutenção das 02:00 às 04:00",
"type": "INFO",
"show": true,
"priority": 3,
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
curl --location 'http://localhost:3333/warning?show=true' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'