Coder Social home page Coder Social logo

moneytransfer's Introduction

Money Transfer Service

REST API for working with account operations

Technologies

  • Kotlin
  • Spring Boot
  • Maven
  • H2 in-memory database
  • Liquibase
  • JUnit
  • Docker

Building

git clone https://github.com/Sunagatov/MoneyTransfer.git
cd MoneyTransfer
mvn clean install

Running

1) Build an docker image with the following command:
     'docker build -t money-transfer .'

2) Then we can run it by running the following command:
     'docker run -p 8080:8080 money-transfer'

3) Then we can open Money Transfer Service API by running the following command:
     'start "" "http://localhost:8080/swagger-ui/"'

API

Get an existing account details

GET localhost:8080/accounts/{id}

Get all existing accounts

GET localhost:8080/accounts

Create a new account

POST localhost:8080/accounts

Transfer money from one account to another

PATCH localhost:8080/accounts/transfer-money

Add money to an existing account

PATCH localhost:8080/accounts/add-money

Withdraw money from an existing account

PATCH localhost:8080/accounts/withdraw-money

Delete all existing accounts

DELETE localhost:8080/accounts

Delete existing account by id

DELETE localhost:8080/accounts/{id}

moneytransfer's People

Contributors

sunagatov avatar

Stargazers

Michael Fett avatar  avatar  avatar Veronika Gorelova avatar  avatar Iuliia Nedolivko avatar  avatar Ruslan Kuyanets avatar  avatar Bohdan Sidorov avatar  avatar Aliaksandr Nikifarau avatar Dmitry Bandarovich avatar  avatar  avatar  avatar Yermukhan Nurkali avatar  avatar Sergei Reshetniak avatar Nick Polyackov avatar Anna Striganova avatar Vilena Shigapova avatar  avatar  avatar Pavel Nazarychev avatar  avatar Dmitriy avatar  avatar Vitalii avatar Airat Gimaev avatar Avdeev Evgeniy avatar  avatar  avatar Yuliya Harbacheuskaya avatar Liudmila Mihaylichenko avatar Masha Vulcu avatar  avatar

Watchers

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