PicPay Desafio Backend Sênior

Tecnologias

Como Executar

  • Clonar repositório git:
git clone https://github.com/Edimar-Dias-dos-Santos/picpay-desafio-backend.git
  • Executar o Kafka:
docker-compose up
  • Executar a aplicação Spring Boot
  • Acessar aplicação em http://localhost:8080.

Arquitetura

Desenho de Arquitetura

Diagrama de Atividades

API

  • http :8080/transaction value=100.0 payer=1 payee=200
HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json
Date: Tue, 05 Mar 2024 19:07:52 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked

{
    "createdAt": "2024-03-05T16:07:50.749774",
    "id": 20,
    "payee": 2,
    "payer": 1,
    "value": 100.0
}
  • http :8080/transaction
HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json
Date: Tue, 05 Mar 2024 19:08:13 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked

[
    {
        "createdAt": "2024-03-05T16:07:50.749774",
        "id": 20,
        "payee": 2,
        "payer": 1,
        "value": 100.0
    }
]