-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonal-budget.postman_collection.json
More file actions
109 lines (109 loc) · 2.18 KB
/
personal-budget.postman_collection.json
File metadata and controls
109 lines (109 loc) · 2.18 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"info": {
"_postman_id": "7c29f8a2-3c6c-47a4-a8b3-aada67493bb3",
"name": "personal-budget",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
"_exporter_id": "28103794"
},
"item": [
{
"name": "get all envelopes",
"request": {
"method": "GET",
"header": [],
"url": "http://localhost:3000/api/envelopes/"
},
"response": []
},
{
"name": "get envelope by id",
"request": {
"method": "GET",
"header": [],
"url": "http://localhost:3000/api/envelopes/2"
},
"response": []
},
{
"name": "create new envelope",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Gym\",\r\n \"amount\": 40.00\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://localhost:3000/api/envelopes/"
},
"response": []
},
{
"name": "update envelope by id",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Groceries\",\r\n \"amount\": 200.00\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://localhost:3000/api/envelopes/1"
},
"response": []
},
{
"name": "transfer amount",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"fromEnvelopeId\": 3,\r\n \"toEnvelopeId\": 9,\r\n \"amount\": 10.00\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://localhost:3000/api/envelopes/transfer"
},
"response": []
},
{
"name": "delete an envelope",
"request": {
"method": "DELETE",
"header": [],
"url": "http://localhost:3000/api/envelopes/8"
},
"response": []
},
{
"name": "get all transactions",
"request": {
"method": "GET",
"header": [],
"url": "http://localhost:3000/api/transactions/"
},
"response": []
},
{
"name": "get transaction by id",
"request": {
"method": "GET",
"header": [],
"url": "http://localhost:3000/api/transactions/2"
},
"response": []
}
]
}