https://github.com/sammers21/money-transfer-api
Simple RESTful API for money transfers between users
https://github.com/sammers21/money-transfer-api
java money restful-api transfer vertx
Last synced: 24 days ago
JSON representation
Simple RESTful API for money transfers between users
- Host: GitHub
- URL: https://github.com/sammers21/money-transfer-api
- Owner: Sammers21
- Created: 2018-09-07T18:13:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T15:14:48.000Z (over 5 years ago)
- Last Synced: 2025-02-12T15:28:03.524Z (3 months ago)
- Topics: java, money, restful-api, transfer, vertx
- Language: Java
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# money-transfer-api
[](https://travis-ci.org/Sammers21/money-transfer-api)
## Design
This app has 4 endpoints:
1. `GET /user/` - get user information by nick
2. `GET /user//withdraw?sum=` - withdraw any sum of money
3. `GET /user//contribute?sum=` - contribute any sum of money
4. `GET/user//transfer?sum=&to=` - transfer money between usersIt is also assumed that:
* there is no currencies, exchange rates, transactions, only abstract sums of money
* each user is an account itself## Builing & Running
Building jar with all dependecies:
```bash
./gradlew jar
```Standalone executable jar can be found at _build/libs/money-transfer-api.jar_.
So you can run this jar:
```
java -jar build/libs/money-transfer-api.jar
```The app will be listening on port 8080.