- URL: /api/v1/users
- Method: POST
- Body:
{
"username": "Antoha"
}
- URL: /api/v1/categories/
- Method: POST
- Body:
{
"categoryName": "War"
}
- URL: /api/v1/records?customerID=5&categoryID=17
- Method: POST
- Body:
{
"customerID": "6",
"categoryID": "14",
"moneySpent": "433"
}
- URL: /api/v1/categories/
- Method: GET
- URL: /api/v1/users/{userID}/records
- Method: GET
- URL: /api/v1/users/{userID}/categories/{categoryID}/records
- Method: GET
- URL: /api/v1/records
- Method: GET
https://heroku-backend-dockerlab.herokuapp.com/api/v1/records
- Clone this repository
- Build .jar file by running
./mvnw clean install -DskipTests=true
- Run Docker Compose using
docker-compose up
- To stop - press Ctrl + C
- To remove containers:
docker-compose down
- Remove docker images (
docker rmi
) - Delete target folder (manually or
./mvnw clean
) - Then build again and run docker compose