Giter Site home page Giter Site logo

banking-system-api's Introduction

Banking System API

REST API created in Spring Boot to simulate a Banking System

This REST API allows you to recreate a banking system with the following functionalities:

  • Make transactions between different types of accounts
  • Make transactions between a Third Party and an different types of accounts
  • Check your accounts balance
  • Automatically update balance generating interests and fees if applicable

Setup

To run this project locally do the following after cloning the project:

  1. Create the database: bankingsys
  2. Edit the application.properties file in both the /main folder and the /test folder and insert your own credentials
  3. Launch the application by running mvn spring-boot:run in your terminal (point your terminal towards your project folder)

API documentation

Depending on the route you are trying to access, you will need different privileges. These are the routes you can try and the permissions you will need to perform the action

Admin routes

Method Route Response User Role
GET /admin/account/id/{id} Get account by account ID. Admin
GET /admin/account/{id}/balance Get balance by account ID. Admin
GET /admin/account/{id}/accounts Get all Accounts of a user by User ID. Admin
POST admin/account/{id}/balance Update Balance of an account by Account ID. Admin
POST /admin/create-account-holder Create a new Accountholder. Admin
GET /admin/account-holders Get all Account Holders Admin
POST /admin/checking-account/new/ Create a new Checking Account Admin
GET /admin/checking-accounts Get all checking Accounts Admin
POST /credit-card/new Create a new Credit Card Admin
GET /credit-cards Get all Credit Cards Admin
POST /admin/savings-account/new Create new Savings Account Admin
GET /admin/savings-accounts Get All Savings Accounts Admin
POST /admin/student-checking-account/new Create new Checking Account Admin
GET /admin/student-checking-accounts Get all student checking Accounts Admin

User routes

Method Route Response User Role
GET /my-accounts/{id}/balance Get Balance AccountHolder
POST /transfer Make a transaction between accounts AccountHolder

User routes

Method Route Response User Role
GET /my-accounts/{id}/balance Get Balance AccountHolder
POST /transfer Make a transaction between accounts AccountHolder

Tech Stack

Spring

MySQL

banking-system-api's People

Contributors

gingerdragon7 avatar

Watchers

James Cloos avatar  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.