Code Monkey home page Code Monkey logo

gokada-atm-api's Introduction

Gokada-ATM-API

Getting Started

Please ensure Node Js and npm are installed

  1. Install Nodejs
  2.  git clone https://github.com/Daltimore/gokada-atm-api
  4.  npm install
  5.  npm run dev
  6.  To test, npm run test

Technology Stack

  1. Node JS

Start Server

POST http://localhost:4000/

Request Query

parameters Type Description
card_number string Card Number (any 16 digit number is valid)
pin string User Pin. (1234 is the right value)

Response

{
    "current_url": "https://domain.com/",
    "data": {
        "message": "Session Started",
        "session_data": {
            "account_name": "Gokada Name"
        }
    },
    "status": "success"
}

Get User Account Balance

GET http://localhost:4000/balance

Response

{
    "current_url": "https://domain.com/balance",
    "data": {
        "message": "User Account Balance",
        "account_data": {
            "account_balance": 40000,
            "book_balance": 40000,
            "account_number": "1234567890",
            "account_name": "Gokada Name"
        }
    },
    "status": "success"
}

Make Withdrawal

POST http://localhost:4000/withdrawal

Request Query

parameters Type Description
amount Numeric Amount to withdraw
notes integer Notes to withdrawal 500 or 1000

Response

{
    "current_url": "https://domain.com/withdrawal",
    "data": {
        "message": "Account Withdrawal",
        "withdrawal_data": {
            "account_number": "1234567890",
            "account_name": "Gokada Name",
            "withdrawal_amount": 5000,
            "withdrawal_notes": 500,
            "number_of_notes": 10,
            "old_balance": 35000,
            "new_balance": 30000,
            "date": "2019-05-31",
            "time": "02:33:36",
            "atm_location": "IKEGA GRA"
        }
    },
    "status": "success"
}

gokada-atm-api's People

Contributors

daltimore avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.