Project created for the second edition of the backend rinha.
To start the application, execute a docker compose command.
docker compose up -d
- POST /clientes/{id}/transacoes
Request
{
"valor": 1000,
"tipo" : "c",
"descricao" : "descricao"
}
Response
{
"limite" : 100000,
"saldo" : -9098
}
- GET /clientes/{id}/transacoes
Response
{
"saldo": {
"total": -9098,
"data_extrato": "2024-01-17T02:34:41.217753Z",
"limite": 100000
},
"ultimas_transacoes": [
{
"valor": 10,
"tipo": "c",
"descricao": "descricao",
"realizada_em": "2024-01-17T02:34:38.543030Z"
},
{
"valor": 90000,
"tipo": "d",
"descricao": "descricao",
"realizada_em": "2024-01-17T02:34:38.543030Z"
}
]
}