https://github.com/bifrurcated/wallet
https://github.com/bifrurcated/wallet
integration-testing jdbc liquebase mockmvc restcontrolleradvice webmvc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bifrurcated/wallet
- Owner: bifrurcated
- Created: 2024-01-12T10:39:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T09:07:16.000Z (about 2 years ago)
- Last Synced: 2024-01-20T00:55:54.260Z (about 2 years ago)
- Topics: integration-testing, jdbc, liquebase, mockmvc, restcontrolleradvice, webmvc
- Language: Java
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# REST application
Сервис для управления кошельком
## Usage
### Запрос на изменения суммы денег в кошельке
DEPOSIT - положить сумму денег \
WITHDRAW - снять сумму денег
```
POST api/v1/wallet
{
walletId: UUID,
operationType: DEPOSIT or WITHDRAW,
amount: 1000
}
```
Example:
```
POST api/v1/wallet
{
"walletId": "1307c35d-31d6-41e4-a3df-6c240a22a067",
"operationType": "DEPOSIT",
amount: 1000
}
```
Return:
```
{
"id": "1307c35d-31d6-41e4-a3df-6c240a22a067",
"amount": 9000.0
}
```
### Вернуть баланс кошелька по UUID
```
GET api/v1/wallets/{WALLET_UUID}
```
Example:
```
GET api/v1/wallets/1307c35d-31d6-41e4-a3df-6c240a22a067
```
Return:
```
{
"amount": 9000.0
}
```