BinHong Lee 11d2a817df | il y a 7 ans | |
---|---|---|
.gitignore | il y a 7 ans | |
README.md | il y a 7 ans | |
index.js | il y a 7 ans | |
package.json | il y a 7 ans |
Creating a payment chain for bill splitting needs
api domain: https:\\breakups.herokuapp.com\
Type | Call | Request | Response |
---|---|---|---|
GET |
help |
- | URL to github repository |
POST |
total |
standard format | { "total": 200 } |
POST |
perPerson |
standard format | { "perPerson": 30 } |
POST |
oweChart |
standard format | standard format |
POST |
sortedOweChart |
standard format | standard format |
POST |
paymentChain |
standard format | chain format |
{
"users": [
{
"name": "Person1",
"amount": 100
},
{
"name": "Person2",
"amount": 50
},
{
"name": "Person3",
"amount": 30
}
]
}
[
{
"from": "Person2",
"to": "Person3",
"amount": 10
},
{
"from": "Person3",
"to": "Person1",
"amount": 40
}
]