Web application supporting managing shared expenses.
docker pull postgres:alpine
docker run --name postgres-0 -e POSTGRES_PASSWORD=admin -d -p 5433:5432 postgres:alpine
docker exec -it postgres-0 bash
psql -U postgres
CREATE DATABASE sharethebill;
CREATE USER sharethebill_admin WITH PASSWORD 'admin';
GRANT ALL PRIVILEGES ON DATABASE sharethebill TO sharethebill_admin;
POST http://localhost:8080/api/user
{
"login": "jkowalski",
"email": "[email protected]",
"role": "CLIENT"
}
POST http://localhost:8080/api/group/create
{
"name": "testowa",
"isActive": true,
"currencyCode": "EUR"
}
POST http://localhost:8080/api/group/addUser/{group_id}/{user_id}
POST http://localhost:8080/api/group/addPurchase/{group_id}/{user_id}
{
"title": "pope souvenirs",
"value": 21.37,
"description": "pope John Paul II suvenirs"
}
GET http://localhost:8080/api/group/calculate/{group_id}