1
+ {
2
+ "info" : {
3
+ "_postman_id" :" d8c74037-1a1e-41f0-975d-d927d4d02821" ,
4
+ "name" :" Golang_GORM" ,
5
+ "schema" :" https://schema.getpostman.com/json/collection/v2.1.0/collection.json" ,
6
+ "_exporter_id" :" 14791724"
7
+ },
8
+ "item" : [
9
+ {
10
+ "name" :" Auth" ,
11
+ "item" : [
12
+ {
13
+ "name" :" Register" ,
14
+ "request" : {
15
+ "method" :" POST" ,
16
+ "header" : [],
17
+ "body" : {
18
+ "mode" :" raw" ,
19
+ "raw" :" {\r\n \" email\" :\" admin@admin.com\" ,\r\n \" name\" :\" Admin\" ,\r\n \" password\" :\" password123\" ,\r\n \" passwordConfirm\" :\" password123\" ,\r\n \" photo\" :\" default.png\"\r\n }" ,
20
+ "options" : {
21
+ "raw" : {
22
+ "language" :" json"
23
+ }
24
+ }
25
+ },
26
+ "url" : {
27
+ "raw" :" http://localhost:8000/api/auth/register" ,
28
+ "protocol" :" http" ,
29
+ "host" : [
30
+ " localhost"
31
+ ],
32
+ "port" :" 8000" ,
33
+ "path" : [
34
+ " api" ,
35
+ " auth" ,
36
+ " register"
37
+ ]
38
+ }
39
+ },
40
+ "response" : []
41
+ },
42
+ {
43
+ "name" :" Refresh Token" ,
44
+ "request" : {
45
+ "method" :" GET" ,
46
+ "header" : [],
47
+ "url" : {
48
+ "raw" :" http://localhost:8000/api/auth/refresh" ,
49
+ "protocol" :" http" ,
50
+ "host" : [
51
+ " localhost"
52
+ ],
53
+ "port" :" 8000" ,
54
+ "path" : [
55
+ " api" ,
56
+ " auth" ,
57
+ " refresh"
58
+ ]
59
+ }
60
+ },
61
+ "response" : []
62
+ },
63
+ {
64
+ "name" :" Forgot Password" ,
65
+ "request" : {
66
+ "method" :" POST" ,
67
+ "header" : [],
68
+ "body" : {
69
+ "mode" :" raw" ,
70
+ "raw" :" {\r\n \" email\" :\" janeDoe@gmail.com\"\r\n }" ,
71
+ "options" : {
72
+ "raw" : {
73
+ "language" :" json"
74
+ }
75
+ }
76
+ },
77
+ "url" : {
78
+ "raw" :" http://localhost:8000/api/auth/forgotpassword" ,
79
+ "protocol" :" http" ,
80
+ "host" : [
81
+ " localhost"
82
+ ],
83
+ "port" :" 8000" ,
84
+ "path" : [
85
+ " api" ,
86
+ " auth" ,
87
+ " forgotpassword"
88
+ ]
89
+ }
90
+ },
91
+ "response" : []
92
+ },
93
+ {
94
+ "name" :" Reset Password" ,
95
+ "request" : {
96
+ "method" :" PATCH" ,
97
+ "header" : [],
98
+ "body" : {
99
+ "mode" :" raw" ,
100
+ "raw" :" {\r\n \" password\" :\" password123\" ,\r\n \" passwordConfirm\" :\" password123\"\r\n }" ,
101
+ "options" : {
102
+ "raw" : {
103
+ "language" :" json"
104
+ }
105
+ }
106
+ },
107
+ "url" : {
108
+ "raw" :" http://localhost:8000/api/auth/resetpassword/CJ6a7SPThfBv2o132NQF" ,
109
+ "protocol" :" http" ,
110
+ "host" : [
111
+ " localhost"
112
+ ],
113
+ "port" :" 8000" ,
114
+ "path" : [
115
+ " api" ,
116
+ " auth" ,
117
+ " resetpassword" ,
118
+ " CJ6a7SPThfBv2o132NQF"
119
+ ]
120
+ }
121
+ },
122
+ "response" : []
123
+ },
124
+ {
125
+ "name" :" Logout" ,
126
+ "request" : {
127
+ "method" :" GET" ,
128
+ "header" : [],
129
+ "url" : {
130
+ "raw" :" http://localhost:8000/api/auth/logout" ,
131
+ "protocol" :" http" ,
132
+ "host" : [
133
+ " localhost"
134
+ ],
135
+ "port" :" 8000" ,
136
+ "path" : [
137
+ " api" ,
138
+ " auth" ,
139
+ " logout"
140
+ ]
141
+ }
142
+ },
143
+ "response" : []
144
+ },
145
+ {
146
+ "name" :" Login" ,
147
+ "request" : {
148
+ "method" :" POST" ,
149
+ "header" : [],
150
+ "body" : {
151
+ "mode" :" raw" ,
152
+ "raw" :" {\r\n \" email\" :\" admin@admin.com\" ,\r\n \" password\" :\" password123\"\r\n }" ,
153
+ "options" : {
154
+ "raw" : {
155
+ "language" :" json"
156
+ }
157
+ }
158
+ },
159
+ "url" : {
160
+ "raw" :" http://localhost:8000/api/auth/login" ,
161
+ "protocol" :" http" ,
162
+ "host" : [
163
+ " localhost"
164
+ ],
165
+ "port" :" 8000" ,
166
+ "path" : [
167
+ " api" ,
168
+ " auth" ,
169
+ " login"
170
+ ]
171
+ }
172
+ },
173
+ "response" : []
174
+ },
175
+ {
176
+ "name" :" Verify Email Address" ,
177
+ "request" : {
178
+ "method" :" GET" ,
179
+ "header" : [],
180
+ "url" : {
181
+ "raw" :" http://localhost:8000/api/auth/verifyemail/TR1KnnPr2PvkYi2xvvAG" ,
182
+ "protocol" :" http" ,
183
+ "host" : [
184
+ " localhost"
185
+ ],
186
+ "port" :" 8000" ,
187
+ "path" : [
188
+ " api" ,
189
+ " auth" ,
190
+ " verifyemail" ,
191
+ " TR1KnnPr2PvkYi2xvvAG"
192
+ ]
193
+ }
194
+ },
195
+ "response" : []
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "name" :" User" ,
201
+ "item" : [
202
+ {
203
+ "name" :" Get Me" ,
204
+ "request" : {
205
+ "auth" : {
206
+ "type" :" noauth"
207
+ },
208
+ "method" :" GET" ,
209
+ "header" : [],
210
+ "url" : {
211
+ "raw" :" http://localhost:8000/api/users/me" ,
212
+ "protocol" :" http" ,
213
+ "host" : [
214
+ " localhost"
215
+ ],
216
+ "port" :" 8000" ,
217
+ "path" : [
218
+ " api" ,
219
+ " users" ,
220
+ " me"
221
+ ]
222
+ }
223
+ },
224
+ "response" : []
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "name" :" Post" ,
230
+ "item" : [
231
+ {
232
+ "name" :" Create Post" ,
233
+ "request" : {
234
+ "method" :" POST" ,
235
+ "header" : [],
236
+ "body" : {
237
+ "mode" :" raw" ,
238
+ "raw" :" {\r\n \" title\" :\" My first 6 demo post always\" ,\r\n \" content\" :\" My content haha My content haha\" ,\r\n \" image\" :\" default.png\"\r\n }" ,
239
+ "options" : {
240
+ "raw" : {
241
+ "language" :" json"
242
+ }
243
+ }
244
+ },
245
+ "url" : {
246
+ "raw" :" http://localhost:8000/api/posts" ,
247
+ "protocol" :" http" ,
248
+ "host" : [
249
+ " localhost"
250
+ ],
251
+ "port" :" 8000" ,
252
+ "path" : [
253
+ " api" ,
254
+ " posts"
255
+ ]
256
+ }
257
+ },
258
+ "response" : []
259
+ },
260
+ {
261
+ "name" :" Get Post" ,
262
+ "request" : {
263
+ "method" :" GET" ,
264
+ "header" : [],
265
+ "url" : {
266
+ "raw" :" http://localhost:8000/api/posts/571e4146-c8d9-4507-81f4-4b1a3a01cd03" ,
267
+ "protocol" :" http" ,
268
+ "host" : [
269
+ " localhost"
270
+ ],
271
+ "port" :" 8000" ,
272
+ "path" : [
273
+ " api" ,
274
+ " posts" ,
275
+ " 571e4146-c8d9-4507-81f4-4b1a3a01cd03"
276
+ ]
277
+ }
278
+ },
279
+ "response" : []
280
+ },
281
+ {
282
+ "name" :" Update Post" ,
283
+ "request" : {
284
+ "method" :" PUT" ,
285
+ "header" : [],
286
+ "body" : {
287
+ "mode" :" raw" ,
288
+ "raw" :" {\r\n \" title\" :\" Update post 6 with new tile\" ,\r\n \" content\" :\" My content haha My content haha\" ,\r\n \" image\" :\" default.png\"\r\n }" ,
289
+ "options" : {
290
+ "raw" : {
291
+ "language" :" json"
292
+ }
293
+ }
294
+ },
295
+ "url" : {
296
+ "raw" :" http://localhost:8000/api/posts/571e4146-c8d9-4507-81f4-4b1a3a01cd03" ,
297
+ "protocol" :" http" ,
298
+ "host" : [
299
+ " localhost"
300
+ ],
301
+ "port" :" 8000" ,
302
+ "path" : [
303
+ " api" ,
304
+ " posts" ,
305
+ " 571e4146-c8d9-4507-81f4-4b1a3a01cd03"
306
+ ]
307
+ }
308
+ },
309
+ "response" : []
310
+ },
311
+ {
312
+ "name" :" Delete Post" ,
313
+ "request" : {
314
+ "method" :" DELETE" ,
315
+ "header" : [],
316
+ "url" : {
317
+ "raw" :" http://localhost:8000/api/posts/571e4146-c8d9-4507-81f4-4b1a3a01cd03" ,
318
+ "protocol" :" http" ,
319
+ "host" : [
320
+ " localhost"
321
+ ],
322
+ "port" :" 8000" ,
323
+ "path" : [
324
+ " api" ,
325
+ " posts" ,
326
+ " 571e4146-c8d9-4507-81f4-4b1a3a01cd03"
327
+ ]
328
+ }
329
+ },
330
+ "response" : []
331
+ },
332
+ {
333
+ "name" :" Get All Posts" ,
334
+ "request" : {
335
+ "method" :" GET" ,
336
+ "header" : [],
337
+ "url" : {
338
+ "raw" :" http://localhost:8000/api/posts?page=1&limit=10" ,
339
+ "protocol" :" http" ,
340
+ "host" : [
341
+ " localhost"
342
+ ],
343
+ "port" :" 8000" ,
344
+ "path" : [
345
+ " api" ,
346
+ " posts"
347
+ ],
348
+ "query" : [
349
+ {
350
+ "key" :" page" ,
351
+ "value" :" 1"
352
+ },
353
+ {
354
+ "key" :" limit" ,
355
+ "value" :" 10"
356
+ }
357
+ ]
358
+ }
359
+ },
360
+ "response" : []
361
+ }
362
+ ]
363
+ }
364
+ ]
365
+ }