-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayTabs backend challenage.postman_collection.json
82 lines (82 loc) · 1.59 KB
/
PayTabs backend challenage.postman_collection.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"info": {
"_postman_id": "14ca00fb-df61-4511-a207-8a1f42ddc012",
"name": "PayTabs backend challenage",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "get account by id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/accounts/0e310275-ab11-4a11-a572-642eb0715550",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"accounts",
"0e310275-ab11-4a11-a572-642eb0715550"
]
}
},
"response": []
},
{
"name": "get all accounts",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/accounts",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"accounts"
]
}
},
"response": []
},
{
"name": "transfer from to account",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"fromAccount\": \"03eb9399-e526-431f-812f-2fda01659022\",\r\n \"toAccount\": \"04943793-8f35-4d73-aa93-0ef2da57d22e\",\r\n \"amount\": \"123\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/transfer",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"transfer"
]
}
},
"response": []
}
]
}