-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.http
35 lines (26 loc) · 858 Bytes
/
api.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
GET http://localhost:8080/account/clzc1pqd0000008mnfmkq9r50/statement?page=1&items=10 HTTP/1.1
### DEPOSIT
POST http://localhost:8080/account/cjd7n3v6g0001gq9g7j2m3pbk/transaction HTTP/1.1
content-type: application/json
{
"account_id": "cjd7n3v6g0001gq9g7j2m3pbk",
"Amount": 2000,
"transaction_type": "DEPOSIT"
}
### WITHDRAW
POST http://localhost:8080/account/clzc1pqd0000008mnfmkq9r50/transaction HTTP/1.1
content-type: application/json
{
"account_id": "cjd7n3v6g0001gq9g7j2m3pbk",
"Amount": 1000,
"transaction_type": "WITHDRAWAL"
}
### TRANSFER
POST http://localhost:8080/account/clzc1pqd0000008mnfmkq9r50/transaction HTTP/1.1
content-type: application/json
{
"account_id": "clzc1pqd0000008mnfmkq9r50",
"destination_account_id": "cjd7n3v6g0004gq9g7j2m3pbk",
"Amount": 2000,
"transaction_type": "TRANSFER"
}