Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 594 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 594 Bytes

masterclass-sentry

Exemplo de API base para configurar o Sentry.

Chamadas de API

# Cria Usuário 
curl -d '{
    "name": "",
    "email": "[email protected]",
    "password": "123",
    "role": "teste"
}' -H "Content-Type: application/json" -X POST http://localhost:3000/users


# Autentica Usuário
curl -d '{
    "email": "[email protected]",
    "password": "123"
}' -H "Content-Type: application/json" -X POST http://localhost:3000/users/auth


# Lista Usuários
curl -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -X GET http://localhost:3000/users