Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 1.01 KB

File metadata and controls

14 lines (11 loc) · 1.01 KB

Account transfer Rest API

A Java RESTful API for transfers between accounts. Application starts on localhost port 8090 an H2 in memory database.

Endpoints

Method Url Request body example Description
GET /accounts get all accounts
GET /accounts/{id} get account by id
POST /accounts/{name}/{amount} create a new account
GET /transfers get all transfers
PUT /transfers {"fromId": 1, "toId": 2, "amount": 33.33} perform transaction between 2 accounts