Skip to content

Commit fb9fd0c

Browse files
authored
Update README.md
1 parent 2d08f67 commit fb9fd0c

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,66 @@ Following we have a sequence of request the will be used to test the Api
44

55

66

7-
# Reset state before starting tests
7+
## Reset state before starting tests
88

99
```
1010
POST /reset
1111
1212
200 OK
1313
```
1414

15-
--
16-
# Get balance for non-existing account
15+
## Get balance for non-existing account
1716
```
1817
GET /balance?account_id=1234
1918
2019
404 0
2120
```
2221

23-
--
24-
# Create account with initial balance
22+
## Create account with initial balance
2523
```
2624
POST /event {"type":"deposit", "destination":"100", "amount":10}
2725
2826
201 {"destination": {"id":"100", "balance":10}}
2927
```
3028

31-
--
32-
# Deposit into existing account
29+
30+
## Deposit into existing account
3331
```
3432
POST /event {"type":"deposit", "destination":"100", "amount":10}
3533
3634
201 {"destination": {"id":"100", "balance":20}}
3735
```
3836

39-
--
40-
# Get balance for existing account
37+
38+
## Get balance for existing account
4139
```
4240
GET /balance?account_id=100
4341
4442
200 20
4543
```
46-
--
47-
# Withdraw from non-existing account
44+
45+
## Withdraw from non-existing account
4846
```
4947
POST /event {"type":"withdraw", "origin":"200", "amount":10}
5048
5149
404 0
5250
```
5351

54-
--
55-
# Withdraw from existing account
52+
## Withdraw from existing account
5653
```
5754
POST /event {"type":"withdraw", "origin":"100", "amount":5}
5855
5956
201 {"origin": {"id":"100", "balance":15}}
6057
```
61-
--
62-
# Transfer from existing account
58+
59+
## Transfer from existing account
6360
```
6461
POST /event {"type":"transfer", "origin":"100", "amount":15, "destination":"300"}
6562
6663
201 {"origin": {"id":"100", "balance":0}, "destination": {"id":"300", "balance":15}}
6764
```
68-
--
69-
# Transfer from non-existing account
65+
66+
## Transfer from non-existing account
7067
```
7168
POST /event {"type":"transfer", "origin":"200", "amount":15, "destination":"300"}
7269

0 commit comments

Comments
 (0)