forked from OrianTechnion/hw3-node-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts.js
181 lines (178 loc) · 5.51 KB
/
consts.js
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
module.exports.urls404 = {
GET: ['/api/signup', '/api/login', '/api/product', '/api/permission', '/api/segel', '/'],
POST: ['/api/permission', '/api/segel','/api/product/123'],
PUT: ['/api/signup', '/api/login', '/api/product', '/api/segel'],
DELETE: ['/api/signup', '/api/login', '/api/permission', '/api/segel'],
PATCH: ['/api/product','/api/product/123','/api/signup','/api/login','/api/permission','/api/segel']
}
// Created by chatGPT :)
module.exports.products = [
{
name: "Basic T-Shirt",
category: "t-shirt",
description: "A plain, black t-shirt made of soft, comfortable cotton.",
price: 500,
stock: 50,
},
{
name: "Hoodie with Logo",
category: "hoodie",
description: "A black hoodie with a white, embroidered logo on the chest.",
price: 800,
stock: 25,
},
{
name: "Baseball Cap",
category: "hat",
description: "A classic baseball cap with an adjustable strap and a embroidered logo on the front.",
price: 300,
stock: 40,
},
{
name: "Pearl Necklace",
category: "necklace",
description: "A delicate, pearl necklace with a silver chain and clasp.",
price: 750,
stock: 15,
},
{
name: "Leather Bracelet",
category: "bracelet",
description: "A stylish, leather bracelet with a silver clasp.",
price: 350,
stock: 20,
},
{
name: "Running Shoes",
category: "shoes",
description: "A pair of lightweight, breathable running shoes with a comfortable fit and good support.",
price: 1000,
stock: 30,
},
{
name: "Decorative Pillow",
category: "pillow",
description: "A soft, decorative pillow with a colorful pattern and a plush filling.",
price: 300,
stock: 40,
},
{
name: "Coffee Mug",
category: "mug",
description: "A sturdy, ceramic coffee mug with a comfortable handle and a glossy finish.",
price: 150,
stock: 50,
},
{
name: "Mystery Novel",
category: "book",
description: "A thrilling, mystery novel with a complex plot and engaging characters.",
price: 499,
stock: 35,
},
{
name: "1000 Piece Puzzle",
category: "puzzle",
description: "A challenging, 1000 piece jigsaw puzzle with a colorful, detailed image.",
price: 300,
stock: 20,
},
{
name: "Black Jack",
category: "cards",
description: "Best betting game on earth",
price: 900,
stock: 48,
}
];
module.exports.productsWithImage = [
{
name: "Basic T-Shirt",
category: "t-shirt",
description: "A plain, black t-shirt made of soft, comfortable cotton.",
price: 500,
stock: 50,
image: "https://www.example.com/tshirt.jpg"
},
{
name: "Hoodie with Logo",
category: "hoodie",
description: "A black hoodie with a white, embroidered logo on the chest.",
price: 800,
stock: 25,
image: "https://www.example.com/hoodie.jpg"
},
{
name: "Baseball Cap",
category: "hat",
description: "A classic baseball cap with an adjustable strap and a embroidered logo on the front.",
price: 300,
stock: 40,
image: "https://www.example.com/hat.jpg"
},
{
name: "Pearl Necklace",
category: "necklace",
description: "A delicate, pearl necklace with a silver chain and clasp.",
price: 750,
stock: 15,
image: "https://www.example.com/necklace.jpg"
},
{
name: "Leather Bracelet",
category: "bracelet",
description: "A stylish, leather bracelet with a silver clasp.",
price: 350,
stock: 20,
image: "https://www.example.com/bracelet.jpg"
},
{
name: "Running Shoes",
category: "shoes",
description: "A pair of lightweight, breathable running shoes with a comfortable fit and good support.",
price: 1000,
stock: 30,
image: "https://www.example.com/shoes.jpg"
},
{
name: "Decorative Pillow",
category: "pillow",
description: "A soft, decorative pillow with a colorful pattern and a plush filling.",
price: 300,
stock: 40,
image: "https://www.example.com/pillow.jpg"
},
{
name: "Coffee Mug",
category: "mug",
description: "A sturdy, ceramic coffee mug with a comfortable handle and a glossy finish.",
price: 150,
stock: 50,
image: "https://www.example.com/mug.jpg"
},
{
name: "Mystery Novel",
category: "book",
description: "A thrilling, mystery novel with a complex plot and engaging characters.",
price: 499,
stock: 35,
image: "https://www.example.com/book.jpg"
},
{
name: "1000 Piece Puzzle",
category: "puzzle",
description: "A challenging, 1000 piece jigsaw puzzle with a colorful, detailed image.",
price: 300,
stock: 20,
image: "https://www.example.com/puzzle.jpg"
},
{
name: "Black Jack",
category: "cards",
description: "Best betting game on earth",
price: 900,
stock: 48,
image: "https://www.example.com/blackjack.jpg"
}
];
module.exports.categories = ['t-shirt', 'hoodie', 'hat','necklace', 'bracelet','shoes','pillow','mug','book','puzzle','cards'];