/bank-account

akka-http rest api with jackson-scala serizalization, deployed on heroku with ApiAry docs

Primary LanguageScala

Build Status

About

  • This is a Bank Account system implementation of the requirements described here;
  • Live app is deployed on heroku here;
  • Sample request/response and issue test calls to live app is on apiary here;

Available endpoints

Highlights

Libraries, Frameworks & Plugins

API Behaviour

It's behaviour is defined by the API Integration test found here.

The test output is:

[info] RestApiTest:
[info] restApi should
[info] - create a new account responding with HTTP-201
[info] - return an existing account
[info] - delete an existing account
[info] - deposit money to an existing account
[info] - withdraw money from an existing account
[info] - transfer money from an existing account to another existing account
[info] - respond with HTTP-404 Not Found for a non existing path
[info] - respond with HTTP-405 Method Not Allowed for a non supported HTTP method
[info] - respond with HTTP-400 Bad Request in case of an  (pending)
[info] - respond with HTTP-502 Bad Gateway in case of a  (pending)
[info] - respond with HTTP-404 Not Found in case of a  (pending)
[info] - respond with HTTP-500 Internal Server Error in case of a generic Exception (pending)

Run application

To run application, call:

sbt run

If you wanna restart your application without reloading of sbt, use:

sbt re-start