選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
BinHong Lee 11d2a817df Added README.md 7年前
.gitignore Basic functionality now works 7年前
README.md Added README.md 7年前
index.js Payment chain now works as intended 7年前
package.json Basic functionality now works 7年前

README.md

Breakups

Creating a payment chain for bill splitting needs

api domain: https:\\breakups.herokuapp.com\

API Call Documentations

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

Expected Request / Response

standard format

{
  "users": [
    {
      "name": "Person1",
      "amount": 100
    },
    {
      "name": "Person2",
      "amount": 50
    },
    {
      "name": "Person3",
      "amount": 30
    }
  ]
}

chain format

[
  {
    "from": "Person2",
    "to": "Person3",
    "amount": 10
  },
  {
    "from": "Person3",
    "to": "Person1",
    "amount": 40
  }
]