BASE_URL = 'https://bank-api-appleseeds.herokuapp.com/'
BASE_URL + 'users'
BASE_URL + 'users/' + :userId
BASE_URL + 'accounts'
BASE_URL + 'accounts/' + :accountId
BASE_URL + 'users'
- body params:
- userId*
- name*
- cash
- credit
BASE_URL + 'accounts'
- body params:
- userId* (user that is already exist to apply for this new account)
- cash
- credit
BASE_URL + '/accounts/deposit-withdraw'
- body params:
- accountId*
- newCash* (positive for deposit or negative for withdraw)
BASE_URL + '/accounts/transfer-cash'
- body params:
- sourceAccountId*
- targetAccountId*
- cashToTransfer* (only positive number)
BASE_URL + '/accounts/credit'
- body params:
- accountId*
- newCredit*
BASE_URL + '/add-user-to-account'
- body params:
- userId*
- accountId*
BASE_URL + '/remove-user-from-account'
- body params:
- userId*
- accountId*
BASE_URL + 'users/' + :userId
BASE_URL + 'accounts/' + :accountId