API project
This project is for educational purposes only. Pull request are welcome, but priority for project authors! Thank you for your cooperation!
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
Would like to run this project locally? Open terminal and follow these steps:
git clone https://github.com/monicule/express-bank.git
npm i
npm run dev
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:
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.
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.
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.
POST
Data to send:
Withdraws the money form account.
POST
Data to send:
Deposits money to the account.
POST
Data to send:
Transfers money between accounts
Monika: Github
Distributed under the MIT License. See LICENSE.txt for more information.
No other resources.