Account API

Project that implements two basic endpoints

  • One to PATCH the credit and withdraw limits
  • One to GET all the accounts with their respective limits

Suggestion for improvement

Requirements

Mac Os

Linux

Development

Installation

Docker

Setup
mvn clean install
docker-compose up --build

Executing commands inside the container.

If you want to check out what is inside the container

docker ps

The result should be like this:

CONTAINER ID        IMAGE               COMMAND                  CREATED                  STATUS              PORTS                    NAMES
c32dc1bd81ee        account             "/usr/lib/jvm/java-8…"   Less than a second ago   Up 2 seconds        0.0.0.0:8080->8080/tcp   account

Get the CONTAINER ID and execute this:

docker exec -it c32dc1bd81ee /bin/bash

That's it, now you can execute commands inside the container.