Skip to content

NodeJS Test with basic deposit/withdraw-minimum

Notifications You must be signed in to change notification settings

seijiakiyama/atm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atm

NodeJS Test with basic deposit/withdraw-minimum

Live URL:

https://intense-dawn-27185.herokuapp.com/

API:

  • /api/balance [GET]
?account=<account-id>
  • /api/deposit [POST]
{
  "value": 5,
  "banknotes": [
    {
      "value": "2",
      "amount": 2
    },
    {
      "value": "1",
      "amount": 1
    }
  ],
  "targetAccount": "test"
}
  • /api/withdraw [POST]
{
  "value": 1,
  "account": "test"
}

Details

DB needs one single preparations before start using:
The Collection "Banknote" has the "notAllowed":false parameter to be block specific Bank Notes Nominations (such as 1 BRL).

Auth, Tests and local Config are not included at this moment

About

NodeJS Test with basic deposit/withdraw-minimum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published