Skip to content

mariolyon/demo-minibank-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minibank

A rest-api server, that can transfer money between accounts

##Author Mario Lyon

##Implementation Java 11, and akka-http

##Installation Install gradle and Jdk 11.

Run

gradle installDist -x test ./build/install/minibank/bin/minibank

To run the tests

gradle test

to test the running server

#list accounts:
curl http://localhost:8080/accounts

#create account1:
curl -X POST 'http://localhost:8080/accounts'

#create account2:
curl -X POST 'http://localhost:8080/accounts'

#deposit money into account1
curl -X POST 'http://localhost:8080/accounts/1/deposit?amount=20'

#transfer money from account1 to account2 
curl -X POST 'http://localhost:8080/accounts/1/transfer?recipient=2&amount=20'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages