Skip to content

MarioFronza/rinha-backend-2024-q1-kotlin

Repository files navigation

Rinha backend 2024 - q1 - Kotlin

Project created for the second edition of the backend rinha.

Requirements

Technologies/Frameworks

Start

To start the application, execute a docker compose command.

docker compose up -d

Endpoints

REST

  • 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"
    }
  ]
}

About

backend rinha: kotlin implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published