curl --request GET \
--url https://api.myidvirtual.com/suspension \
--header 'Authorization: <authorization>'[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"user": {
"id": "user-id-123",
"name": "João Silva",
"email": "[email protected]"
},
"reason": "Violação dos termos de uso",
"startDate": "2024-01-15T10:30:00.000Z",
"endDate": "2024-01-22T10:30:00.000Z",
"permanent": false,
"status": "ACTIVE"
}
]
Retorna lista de todas as suspensões
curl --request GET \
--url https://api.myidvirtual.com/suspension \
--header 'Authorization: <authorization>'[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"user": {
"id": "user-id-123",
"name": "João Silva",
"email": "[email protected]"
},
"reason": "Violação dos termos de uso",
"startDate": "2024-01-15T10:30:00.000Z",
"endDate": "2024-01-22T10:30:00.000Z",
"permanent": false,
"status": "ACTIVE"
}
]
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"user": {
"id": "user-id-123",
"name": "João Silva",
"email": "[email protected]"
},
"reason": "Violação dos termos de uso",
"startDate": "2024-01-15T10:30:00.000Z",
"endDate": "2024-01-22T10:30:00.000Z",
"permanent": false,
"status": "ACTIVE"
}
]
curl --location 'http://localhost:3333/suspension' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'