This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman_collection.json
125 lines (125 loc) · 2.47 KB
/
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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"info": {
"_postman_id": "39b3f771-8a5b-4ca7-b907-2de80f7d0d9e",
"name": "Discounterland",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Create promotion",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"expiration_date\": \"2022-11-25T16:51:02.003Z\",\n \"product\": {\n \"name\": \"Nutella\",\n \"images\": [\n \"https://images.jumpseller.com/store/hercules-it-llc/10188702/Nutella.jpg?1623999446\"\n ]\n },\n \"discounts_quantity\": 10\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/brands/61a22c8f43cf71b9933afdd7/promotions",
"host": [
"{{host}}"
],
"path": [
"brands",
"61a22c8f43cf71b9933afdd7",
"promotions"
]
}
},
"response": []
},
{
"name": "Create discount",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5MW51bm9jb3N0YUBnbWFpbC5jb20iLCJpYXQiOjE2MTY2MTY5NjN9.tMQoy_6ROA_sxWR1exWVeRZZZFR4qvMbO2Szos_XIMI",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"promotion_id\": \"61a2d5606ac07b74c824f1a9\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/consumers/61a2d3be596808c5d69dd11b/discounts",
"host": [
"{{host}}"
],
"path": [
"consumers",
"61a2d3be596808c5d69dd11b",
"discounts"
]
}
},
"response": []
},
{
"name": "Get root",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{host}}",
"host": [
"{{host}}"
]
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5MW51bm9jb3N0YUBnbWFpbC5jb20iLCJpYXQiOjE2MTY2MTY5NjN9.tMQoy_6ROA_sxWR1exWVeRZZZFR4qvMbO2Szos_XIMI",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "host",
"value": "http://0.0.0.0:5000"
}
]
}