cURL
curl --request DELETE \ --url https://api.myidvirtual.com/user/:id \ --header 'Authorization: <authorization>'
{ "message": "Usuário deletado com sucesso", "deletedUser": { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "João Silva", "email": "[email protected]", "role": "CUSTOMER", "deletedAt": "2024-01-20T14:45:00.000Z" } }
Remove um usuário do sistema
curl --location --request DELETE 'http://localhost:3333/user/123e4567-e89b-12d3-a456-426614174000' \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'