curl --location --request POST 'http://127.0.0.1:8000/ledger/group/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "group1"
}'
curl --location --request GET 'http://127.0.0.1:8000/ledger/adduser/?user=3&group=6'
curl --location --request POST 'http://127.0.0.1:8000/ledger/user/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "demouser"
}'
curl --location --request POST 'http://127.0.0.1:8000/ledger/event/' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": [{
"id": 1,
"amount": 2000,
"Percent": 0
}, {
"id": 2,
"amount": 100,
"percent": 50
}, {
"id": 3,
"amount": 0,
"percent": 50
}],
"name": "groceries",
"type": "percent",
"group": 6
}'
curl --location --request GET 'http://127.0.0.1:8000/ledger/event/'
curl --location --request DELETE 'http://127.0.0.1:8000/ledger/event/46/'
curl --location --request GET 'http://127.0.0.1:8000/ledger/transactions/?user=3'
curl --location --request GET 'http://127.0.0.1:8000/ledger/summary/?group=6'
curl --location --request GET 'http://127.0.0.1:8000/ledger/settle/?lender=1&borrower=3&amount=500&group=6'