RESTful API for money transfers between accounts
mvn clean install- PUT http://localhost:4567/user/create?name=Andrzej&[email protected]
- GET http://localhost:4567/user/all
| METHOD | ENDPOINT | DESCRIPTION |
|---|---|---|
| PUT | /account/create?username=...&balance=...¤cycode=... | create a new account |
| GET | /account/all | get accounts |
| GET | /account/{accountId} | get account |
| GET | /account/{accountId}/balance | get account balance |
| PUT | /account/{accountId}/withdraw/{amount} | withdraw from account |
| PUT | /account/{accountId}/deposit/{amount} | deposit to account |
| DELETE | /account/{accountId} | remove account |
| PUT | /user/create?name=...&email=... | create a new user |
| GET | /user/all | get users |
| GET | /user/{userId} | get user |
| POST | /user/{userId}?name=...&email=... | update user |
| DELETE | /user/{userId} | delete user |
| POST | /transaction/{fromAccountId}/{toAccountId}/{amount}/{currencycode} | transaction |
- Spark (http://sparkjava.com/)
- GSON (serialize/deserialize data)
- junit (unit tests)
- json (json parser)
- log4j (logger)