-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.http
63 lines (48 loc) · 1.04 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
GET http://localhost:3000/acounts?password=Cubos123Bank
###
POST http://localhost:3000/acounts
Content-Type: application/json
{
"name": "cliente teste",
"email": "[email protected]",
"password": "@Teste123",
"phone":"+55 (071) 9 9999-9999",
"cpf": "57093208037",
"birthDate": "2006-01-13"
}
###
GET http://localhost:3000/acounts/1
###
PATCH http://localhost:3000/acounts/1
Content-Type: application/json
{
"name": "cliente teste update",
}
###
DELETE http://localhost:3000/acounts/12
###
POST http://localhost:3000/transations/deposit
Content-Type: application/json
{
"numberAcount": "11",
"value": 10000
}
###
POST http://localhost:3000/transations/withdraw
Content-Type: application/json
{
"numberAcount": "11",
"value": 10000,
"password": "@Teste123"
}
###
POST http://localhost:3000/transations/transfer
Content-Type: application/json
{
"acountDestiny":"12",
"acountOrigin":"11",
"value": 1000,
"password": "@Teste123"
}
###
GET http://localhost:3000/transations/extract?numberAcount=11&password=@Teste123&filters[]=withdraw