express-bank

API Bank

API project


🌟 About

This project is for educational purposes only. Pull request are welcome, but priority for project authors! Thank you for your cooperation!

🎯 Project features/goals

🧰 Getting Started

💻 Prerequisites

Node.js - download and install

https://nodejs.org

Git - download and install

https://git-scm.com

Insomnia (or other equivalents) - download and install

https://insomnia.rest/download

🏃 Run locally

Would like to run this project locally? Open terminal and follow these steps:

  1. Clone the repo to your selected folder
     git clone https://github.com/monicule/express-bank.git
    
  2. Install NPM packages
     npm i
    
  3. Run the server
     npm run dev
    

📝 API Endpoints

/api/account

POST

/api/account

Data example:

    {
    "name": "John",
    "surname": "Doe",
    "dob": "2000-01-01"
    }

Requirements:

GET

/api/account/{name}-{surname}

Response example:

    {
    "name": "John",
    "surname": "Doe",
    "dob": "2000-01-01"
    }

DELETE

/api/account/name-surname

Requirements:

PUT

/api/account/name-surname

Data to send:

/api/account/name

GET

/api/account/john-doe/name

Retrieves the first name of the account holder.

PUT

/api/account/john-doe/name

Updates the first name of the account holder.

/api/account/surname

GET

/api/account/john-doe/surname

Retrieves the surname of the account holder.

PUT

/api/account/john-doe/surname

Updates the surname of the account holder.

/api/account/dob

GET

/api/account/john-doe/dob

Retrieves the day of birth of the account holder.

PUT

/api/account/john-doe/dob

Updates the day of birth of the account holder.

/api/withdrawal

POST

Data to send:

Withdraws the money form account.

/api/deposit

POST

Data to send:

Deposits money to the account.

/api/transfer

POST

Data to send:

Transfers money between accounts

👀 Authors

Monika: Github

⚠️ License

Distributed under the MIT License. See LICENSE.txt for more information.

🔗 Other resources

No other resources.