Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bifrurcated authored Jan 13, 2024
1 parent 2f17e4c commit 923b37e
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# REST application
Сервис для управления кошельком
## Usage
Запрос на изменения суммы денег в кошельке \
### Запрос на изменения суммы денег в кошельке
DEPOSIT - положить сумму денег \
WITHDRAW - снять сумму денег
```
Expand All @@ -13,8 +13,34 @@ 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
### Вернуть баланс кошелька по UUID
```
GET api/v1/wallets/{WALLET_UUID}
```
Example:
```
GET api/v1/wallets/1307c35d-31d6-41e4-a3df-6c240a22a067
```
Return:
```
{
"amount": 9000.0
}
```

0 comments on commit 923b37e

Please sign in to comment.