Resolução do desafio do "picpay simplificado"
Link do desafio
Requisições
POST /transaction
{
"payer" : 1,
"payee" : 2,
"value" : 10.50
}
HTTP 200 OK
{
"id": 9,
"payer": 1,
"payee": 2,
"value": 10.50,
"createdAt": "2024-03-14T15:16:49.555179848"
}
GET /transaction
HTTP 200 OK
{
"transactions": [
{
"id": 9,
"payer": 1,
"payee": 2,
"value": 10.50,
"createdAt": "2024-03-14T15:16:49.55518"
},
{
"id": 8,
"payer": 1,
"payee": 2,
"value": 10.50,
"createdAt": "2024-03-14T13:45:51.653318"
},
{
"id": 7,
"payer": 1,
"payee": 2,
"value": 10.50,
"createdAt": "2024-03-14T13:44:53.746712"
},
{
"id": 6,
"payer": 1,
"payee": 2,
"value": 10.50,
"createdAt": "2024-03-14T13:43:39.720557"
},
{
"id": 5,
"payer": 1,
"payee": 2,
"value": 10.50,
"createdAt": "2024-03-14T13:42:27.491491"
}
]
}
Clone o projeto:
git clone https://github.com/LeonardoMeireles55/picpay.git
No diretório raiz do projeto, execute o comando:
docker-compose up or docker compose up
http://localhost:8080/swagger-ui.html