create-craftjs 2.0.6 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +3 -0
  2. package/bin/index.js +10 -1
  3. package/package.json +5 -2
  4. package/template/Craft JS.postman_collection.json +1500 -0
  5. package/template/craft/commands/key-generate.js +12 -4
  6. package/template/craft/commands/make-controller.js +3 -3
  7. package/template/craft/commands/make-middleware.js +7 -7
  8. package/template/craft/commands/make-route.js +0 -3
  9. package/template/craft/commands/make-test.js +5 -4
  10. package/template/package-lock.json +95 -2
  11. package/template/package.json +3 -1
  12. package/template/src/config/database.ts +5 -3
  13. package/template/src/config/env.ts +10 -1
  14. package/template/src/config/logger.ts +2 -4
  15. package/template/src/config/redis.ts +77 -0
  16. package/template/src/config/web.ts +1 -1
  17. package/template/src/controllers/auth-controller.ts +22 -15
  18. package/template/src/controllers/user-controller.ts +1 -2
  19. package/template/src/database/seeders/seed.ts +14 -4
  20. package/template/src/dtos/auth-dto.ts +28 -0
  21. package/template/src/dtos/user-dto.ts +2 -5
  22. package/template/src/interfaces/auth-session.ts +16 -0
  23. package/template/src/interfaces/type-request.ts +11 -0
  24. package/template/src/main.ts +6 -4
  25. package/template/src/middleware/auth-middleware.ts +19 -28
  26. package/template/src/providers/auth-session-provider.ts +12 -0
  27. package/template/src/providers/db-auth-session.ts +23 -0
  28. package/template/src/providers/redis-auth-session.ts +33 -0
  29. package/template/src/repositories/auth-token-repository.ts +1 -1
  30. package/template/src/services/auth-service.ts +136 -78
  31. package/template/src/services/user-service.ts +8 -2
  32. package/template/test/user.test.ts +3 -2
  33. package/template/tsconfig.json +2 -1
  34. package/template/src/utils/type-request.ts +0 -6
@@ -0,0 +1,1500 @@
1
+ {
2
+ "info": {
3
+ "_postman_id": "468b50bd-5f97-4625-a1ae-8bd8a74a9d5a",
4
+ "name": "Craft JS",
5
+ "description": "# 🚀 CraftJS\n\nA starter kit backend powered by Express, TypeScript, EJS Engine, and Prisma — designed for rapid development, simplicity, and scalability.\n\n---\n\n## ✨ Features\n\n- **Express.js** based API architecture\n \n- **TypeScript** support out of the box\n \n- **Prisma ORM** with scalable database structure\n \n- **CLI tool** (`craft`) for project automation\n \n- Built-in **Logger**, **Validation**, **Error handler**, and **Request lifecycle**\n \n- Predefined project structure for fast onboarding\n \n- Redis Add On Optional for Auth\n \n\n---\n\n## 🛠 Getting Started\n\n### 📦 Scaffold a New Project\n\n``` bash\nnpx create-craftjs@latest my-app\n\n ```\n\nOR\n\n``` bash\nnpm init craftjs@latest my-app\n\n ```\n\n### Go to project folder\n\n``` bash\ncd my-app\n\n ```\n\n### Run Craft Setup\n\n``` bash\nnpm install\nnode craft key:generate\nnode craft db:generate\nnode craft db:migrate\nnode craft db:seed\nnode craft dev\n\n ```\n\n### Available Craft Commands\n\n``` bash\nnode craft help\n\n ```\n\n---\n\nMade by [@muhammadisa-n](https://github.com/muhammadisa-n)\n\n---",
6
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7
+ "_exporter_id": "21762546",
8
+ "_collection_link": "https://go.postman.co/collection/21762546-468b50bd-5f97-4625-a1ae-8bd8a74a9d5a?source=collection_link"
9
+ },
10
+ "item": [
11
+ {
12
+ "name": "Auth",
13
+ "item": [
14
+ {
15
+ "name": "Register",
16
+ "request": {
17
+ "auth": {
18
+ "type": "noauth"
19
+ },
20
+ "method": "POST",
21
+ "header": [],
22
+ "body": {
23
+ "mode": "formdata",
24
+ "formdata": [
25
+ {
26
+ "key": "full_name",
27
+ "value": "John Doe",
28
+ "type": "text",
29
+ "uuid": "6cb390f9-9e2b-4bdc-9fca-f91c6edef2b6"
30
+ },
31
+ {
32
+ "key": "email",
33
+ "value": "johndoe@gmail.com",
34
+ "type": "text",
35
+ "uuid": "eac4f461-08ef-4fb5-b293-15b074d67e2f"
36
+ },
37
+ {
38
+ "key": "password",
39
+ "value": "123456",
40
+ "type": "text",
41
+ "uuid": "9c238c1e-3d4f-457c-be5e-8e862135f75e"
42
+ }
43
+ ]
44
+ },
45
+ "url": {
46
+ "raw": "{{url}}auth/register",
47
+ "host": [
48
+ "{{url}}auth"
49
+ ],
50
+ "path": [
51
+ "register"
52
+ ]
53
+ }
54
+ },
55
+ "response": [
56
+ {
57
+ "name": "Register",
58
+ "originalRequest": {
59
+ "method": "POST",
60
+ "header": [],
61
+ "body": {
62
+ "mode": "formdata",
63
+ "formdata": [
64
+ {
65
+ "key": "full_name",
66
+ "value": "John Doe",
67
+ "type": "text",
68
+ "uuid": "6cb390f9-9e2b-4bdc-9fca-f91c6edef2b6"
69
+ },
70
+ {
71
+ "key": "email",
72
+ "value": "johndoe@gmail.com",
73
+ "type": "text",
74
+ "uuid": "eac4f461-08ef-4fb5-b293-15b074d67e2f"
75
+ },
76
+ {
77
+ "key": "password",
78
+ "value": "123456",
79
+ "type": "text",
80
+ "uuid": "9c238c1e-3d4f-457c-be5e-8e862135f75e"
81
+ }
82
+ ]
83
+ },
84
+ "url": {
85
+ "raw": "{{url}}auth/register",
86
+ "host": [
87
+ "{{url}}auth"
88
+ ],
89
+ "path": [
90
+ "register"
91
+ ]
92
+ }
93
+ },
94
+ "status": "Created",
95
+ "code": 201,
96
+ "_postman_previewlanguage": null,
97
+ "header": [
98
+ {
99
+ "key": "X-Powered-By",
100
+ "value": "Express"
101
+ },
102
+ {
103
+ "key": "Vary",
104
+ "value": "Origin"
105
+ },
106
+ {
107
+ "key": "Access-Control-Allow-Credentials",
108
+ "value": "true"
109
+ },
110
+ {
111
+ "key": "Content-Type",
112
+ "value": "application/json; charset=utf-8"
113
+ },
114
+ {
115
+ "key": "Content-Length",
116
+ "value": "167"
117
+ },
118
+ {
119
+ "key": "ETag",
120
+ "value": "W/\"a7-1pEOaCzT5+gqNoCc8OaSXYUxvaU\""
121
+ },
122
+ {
123
+ "key": "Date",
124
+ "value": "Sun, 22 Feb 2026 08:42:20 GMT"
125
+ },
126
+ {
127
+ "key": "Connection",
128
+ "value": "keep-alive"
129
+ },
130
+ {
131
+ "key": "Keep-Alive",
132
+ "value": "timeout=5"
133
+ }
134
+ ],
135
+ "cookie": [],
136
+ "body": "{\n \"status\": true,\n \"status_code\": 201,\n \"message\": \"Register Berhasil\",\n \"data\": {\n \"id\": \"fea760cd-6b9c-44ba-aced-f54d0ca3ce53\",\n \"full_name\": \"John Doe\",\n \"email\": \"johndoe@gmail.com\"\n }\n}"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "name": "Login",
142
+ "event": [
143
+ {
144
+ "listen": "test",
145
+ "script": {
146
+ "exec": [
147
+ "// Ambil JSON response\r",
148
+ "let response = pm.response.json();\r",
149
+ "\r",
150
+ "// Ambil accessToken\r",
151
+ "let token = response.data && response.data.accessToken;\r",
152
+ "\r",
153
+ "// Simpan ke variable collection\r",
154
+ "if (token) {\r",
155
+ " pm.collectionVariables.set(\"access_token\", token);\r",
156
+ " console.log(\"Access token saved:\", token);\r",
157
+ "} else {\r",
158
+ " console.log(\"Access token not found in response\");\r",
159
+ "}\r",
160
+ ""
161
+ ],
162
+ "type": "text/javascript",
163
+ "packages": {},
164
+ "requests": {}
165
+ }
166
+ }
167
+ ],
168
+ "request": {
169
+ "auth": {
170
+ "type": "noauth"
171
+ },
172
+ "method": "POST",
173
+ "header": [
174
+ {
175
+ "key": "",
176
+ "value": "",
177
+ "type": "text",
178
+ "disabled": true
179
+ }
180
+ ],
181
+ "body": {
182
+ "mode": "formdata",
183
+ "formdata": [
184
+ {
185
+ "key": "email",
186
+ "value": "johndoe@gmail.com",
187
+ "type": "text",
188
+ "uuid": "13007f0a-7683-418f-99ab-ff20a1326ebd"
189
+ },
190
+ {
191
+ "key": "password",
192
+ "value": "123456",
193
+ "type": "text",
194
+ "uuid": "1771621e-065d-4ae9-898c-fda65f448520"
195
+ }
196
+ ]
197
+ },
198
+ "url": {
199
+ "raw": "{{url}}auth/login",
200
+ "host": [
201
+ "{{url}}auth"
202
+ ],
203
+ "path": [
204
+ "login"
205
+ ]
206
+ }
207
+ },
208
+ "response": [
209
+ {
210
+ "name": "Login",
211
+ "originalRequest": {
212
+ "method": "POST",
213
+ "header": [
214
+ {
215
+ "key": "",
216
+ "value": "",
217
+ "type": "text",
218
+ "disabled": true
219
+ }
220
+ ],
221
+ "body": {
222
+ "mode": "formdata",
223
+ "formdata": [
224
+ {
225
+ "key": "email",
226
+ "value": "johndoe@gmail.com",
227
+ "type": "text",
228
+ "uuid": "13007f0a-7683-418f-99ab-ff20a1326ebd"
229
+ },
230
+ {
231
+ "key": "password",
232
+ "value": "123456",
233
+ "type": "text",
234
+ "uuid": "1771621e-065d-4ae9-898c-fda65f448520"
235
+ }
236
+ ]
237
+ },
238
+ "url": {
239
+ "raw": "{{url}}auth/login",
240
+ "host": [
241
+ "{{url}}auth"
242
+ ],
243
+ "path": [
244
+ "login"
245
+ ]
246
+ }
247
+ },
248
+ "status": "OK",
249
+ "code": 200,
250
+ "_postman_previewlanguage": null,
251
+ "header": [
252
+ {
253
+ "key": "X-Powered-By",
254
+ "value": "Express"
255
+ },
256
+ {
257
+ "key": "Vary",
258
+ "value": "Origin"
259
+ },
260
+ {
261
+ "key": "Access-Control-Allow-Credentials",
262
+ "value": "true"
263
+ },
264
+ {
265
+ "key": "Set-Cookie",
266
+ "value": "refresh_token=8XjLXHpenBI1pU8i.ZrS%2B%2Ba60qp%2BsQyP2YYZ4Mg%3D%3D.g9%2F79WltIPhUycjecgeXENYXh4E4Yve4CBc00wIDPRUHVGpC4gQ%2BkFfNg2xbIgsuTgOkiRU6ZsS1mIKHlFI2qPRRfREpNmEFwHhgwZAXfUDFMZZm8BwPpwNhqePLo0%2BMrndxLIy0DuEqhfkXSmOdZzr4O1Z8CRJwWuwv5jvJQnIuVLVImKQ2wIKsl8gao83UDpT%2B8tMXa%2Fe80y%2F3olRYgwifa0PaRP1yqG73FIxjrAqdTWRJJKtlbdvSfoXv2FnmvlwosJ1OtxcSKNEuGJCpZQ%2FiOCO6VwjHg9kXz1GzipzR5d4R1lkt4Grykr3bfc%2BIxa%2FGw81vQmEd5Z4XXA%3D%3D; Max-Age=86400; Path=/; Expires=Mon, 23 Feb 2026 08:42:34 GMT; HttpOnly; SameSite=Lax"
267
+ },
268
+ {
269
+ "key": "Content-Type",
270
+ "value": "application/json; charset=utf-8"
271
+ },
272
+ {
273
+ "key": "Content-Length",
274
+ "value": "443"
275
+ },
276
+ {
277
+ "key": "ETag",
278
+ "value": "W/\"1bb-/ZMwPZOt8MyZFYFWeSnZSjW4i7c\""
279
+ },
280
+ {
281
+ "key": "Date",
282
+ "value": "Sun, 22 Feb 2026 08:42:34 GMT"
283
+ },
284
+ {
285
+ "key": "Connection",
286
+ "value": "keep-alive"
287
+ },
288
+ {
289
+ "key": "Keep-Alive",
290
+ "value": "timeout=5"
291
+ }
292
+ ],
293
+ "cookie": [],
294
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Login Berhasil\",\n \"data\": {\n \"user\": {\n \"id\": \"fea760cd-6b9c-44ba-aced-f54d0ca3ce53\",\n \"full_name\": \"John Doe\",\n \"email\": \"johndoe@gmail.com\"\n },\n \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZmVhNzYwY2QtNmI5Yy00NGJhLWFjZWQtZjU0ZDBjYTNjZTUzIiwianRpIjoiOTA3YmZhYWItMmYxOS00ZjU0LWE1ZjAtZTc0OGU2MjliMWIwIiwiaWF0IjoxNzcxNzQ5NzU0LCJleHAiOjE3NzE3NTAwNTR9.j9OcAbh75EEXZ-ELdh_5BiVCWR0eIt4p664z6JReUw8\"\n }\n}"
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "name": "Get Current User Login",
300
+ "request": {
301
+ "auth": {
302
+ "type": "bearer",
303
+ "bearer": [
304
+ {
305
+ "key": "token",
306
+ "value": "{{access_token}}",
307
+ "type": "string"
308
+ }
309
+ ]
310
+ },
311
+ "method": "GET",
312
+ "header": [
313
+ {
314
+ "key": "",
315
+ "value": "",
316
+ "type": "text"
317
+ }
318
+ ],
319
+ "url": {
320
+ "raw": "{{url}}auth/me",
321
+ "host": [
322
+ "{{url}}auth"
323
+ ],
324
+ "path": [
325
+ "me"
326
+ ]
327
+ }
328
+ },
329
+ "response": [
330
+ {
331
+ "name": "Get Current User Login",
332
+ "originalRequest": {
333
+ "method": "GET",
334
+ "header": [
335
+ {
336
+ "key": "",
337
+ "value": "",
338
+ "type": "text"
339
+ }
340
+ ],
341
+ "url": {
342
+ "raw": "{{url}}auth/me",
343
+ "host": [
344
+ "{{url}}auth"
345
+ ],
346
+ "path": [
347
+ "me"
348
+ ]
349
+ }
350
+ },
351
+ "status": "OK",
352
+ "code": 200,
353
+ "_postman_previewlanguage": null,
354
+ "header": [
355
+ {
356
+ "key": "X-Powered-By",
357
+ "value": "Express"
358
+ },
359
+ {
360
+ "key": "Vary",
361
+ "value": "Origin"
362
+ },
363
+ {
364
+ "key": "Access-Control-Allow-Credentials",
365
+ "value": "true"
366
+ },
367
+ {
368
+ "key": "Content-Type",
369
+ "value": "application/json; charset=utf-8"
370
+ },
371
+ {
372
+ "key": "Content-Length",
373
+ "value": "174"
374
+ },
375
+ {
376
+ "key": "ETag",
377
+ "value": "W/\"ae-z+LQ/BmSRykuA2w4e10207wE6Fk\""
378
+ },
379
+ {
380
+ "key": "Date",
381
+ "value": "Sun, 22 Feb 2026 08:42:49 GMT"
382
+ },
383
+ {
384
+ "key": "Connection",
385
+ "value": "keep-alive"
386
+ },
387
+ {
388
+ "key": "Keep-Alive",
389
+ "value": "timeout=5"
390
+ }
391
+ ],
392
+ "cookie": [],
393
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Get Detail User Berhasil\",\n \"data\": {\n \"id\": \"fea760cd-6b9c-44ba-aced-f54d0ca3ce53\",\n \"full_name\": \"John Doe\",\n \"email\": \"johndoe@gmail.com\"\n }\n}"
394
+ }
395
+ ]
396
+ },
397
+ {
398
+ "name": "Update Current User Login",
399
+ "event": [
400
+ {
401
+ "listen": "test",
402
+ "script": {
403
+ "exec": [
404
+ "// Ambil JSON response\r",
405
+ "let response = pm.response.json();\r",
406
+ "\r",
407
+ "// Ambil accessToken\r",
408
+ "let token = response.data && response.data.accessToken;\r",
409
+ "\r",
410
+ "// Simpan ke variable collection\r",
411
+ "if (token) {\r",
412
+ " pm.collectionVariables.set(\"access_token\", token);\r",
413
+ " console.log(\"Access token saved:\", token);\r",
414
+ "} else {\r",
415
+ " console.log(\"Access token not found in response\");\r",
416
+ "}\r",
417
+ ""
418
+ ],
419
+ "type": "text/javascript",
420
+ "packages": {},
421
+ "requests": {}
422
+ }
423
+ }
424
+ ],
425
+ "request": {
426
+ "auth": {
427
+ "type": "bearer",
428
+ "bearer": [
429
+ {
430
+ "key": "token",
431
+ "value": "{{access_token}}",
432
+ "type": "string"
433
+ }
434
+ ]
435
+ },
436
+ "method": "PUT",
437
+ "header": [
438
+ {
439
+ "key": "",
440
+ "value": "",
441
+ "type": "text"
442
+ }
443
+ ],
444
+ "body": {
445
+ "mode": "formdata",
446
+ "formdata": [
447
+ {
448
+ "key": "full_name",
449
+ "value": "John Doe",
450
+ "type": "text",
451
+ "uuid": "63892de9-bcbf-4a8f-ab10-885b8ae05b54"
452
+ },
453
+ {
454
+ "key": "email",
455
+ "value": "johndoe@gmail.com",
456
+ "type": "text",
457
+ "uuid": "335b39e6-6b9f-4ba4-aaf0-845db29d33c6"
458
+ }
459
+ ]
460
+ },
461
+ "url": {
462
+ "raw": "{{url}}auth/me",
463
+ "host": [
464
+ "{{url}}auth"
465
+ ],
466
+ "path": [
467
+ "me"
468
+ ]
469
+ }
470
+ },
471
+ "response": [
472
+ {
473
+ "name": "Update Current User Login",
474
+ "originalRequest": {
475
+ "method": "PUT",
476
+ "header": [
477
+ {
478
+ "key": "",
479
+ "value": "",
480
+ "type": "text"
481
+ }
482
+ ],
483
+ "body": {
484
+ "mode": "formdata",
485
+ "formdata": [
486
+ {
487
+ "key": "full_name",
488
+ "value": "John Doe Update",
489
+ "type": "text",
490
+ "uuid": "63892de9-bcbf-4a8f-ab10-885b8ae05b54"
491
+ },
492
+ {
493
+ "key": "email",
494
+ "value": "",
495
+ "type": "text",
496
+ "uuid": "335b39e6-6b9f-4ba4-aaf0-845db29d33c6"
497
+ }
498
+ ]
499
+ },
500
+ "url": {
501
+ "raw": "{{url}}auth/me",
502
+ "host": [
503
+ "{{url}}auth"
504
+ ],
505
+ "path": [
506
+ "me"
507
+ ]
508
+ }
509
+ },
510
+ "status": "OK",
511
+ "code": 200,
512
+ "_postman_previewlanguage": null,
513
+ "header": [
514
+ {
515
+ "key": "X-Powered-By",
516
+ "value": "Express"
517
+ },
518
+ {
519
+ "key": "Vary",
520
+ "value": "Origin"
521
+ },
522
+ {
523
+ "key": "Access-Control-Allow-Credentials",
524
+ "value": "true"
525
+ },
526
+ {
527
+ "key": "Content-Type",
528
+ "value": "application/json; charset=utf-8"
529
+ },
530
+ {
531
+ "key": "Content-Length",
532
+ "value": "66"
533
+ },
534
+ {
535
+ "key": "ETag",
536
+ "value": "W/\"42-feVw6H4OfmJoF3bxLMIpN4eiLIE\""
537
+ },
538
+ {
539
+ "key": "Date",
540
+ "value": "Sun, 22 Feb 2026 08:46:30 GMT"
541
+ },
542
+ {
543
+ "key": "Connection",
544
+ "value": "keep-alive"
545
+ },
546
+ {
547
+ "key": "Keep-Alive",
548
+ "value": "timeout=5"
549
+ }
550
+ ],
551
+ "cookie": [],
552
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Update User Berhasil\"\n}"
553
+ },
554
+ {
555
+ "name": "Update Current User Login (if email change)",
556
+ "originalRequest": {
557
+ "method": "PUT",
558
+ "header": [
559
+ {
560
+ "key": "",
561
+ "value": "",
562
+ "type": "text"
563
+ }
564
+ ],
565
+ "body": {
566
+ "mode": "formdata",
567
+ "formdata": [
568
+ {
569
+ "key": "full_name",
570
+ "value": "John Doe Update",
571
+ "type": "text",
572
+ "uuid": "63892de9-bcbf-4a8f-ab10-885b8ae05b54"
573
+ },
574
+ {
575
+ "key": "email",
576
+ "value": "johndoe3@gmail.com",
577
+ "type": "text",
578
+ "uuid": "335b39e6-6b9f-4ba4-aaf0-845db29d33c6"
579
+ }
580
+ ]
581
+ },
582
+ "url": {
583
+ "raw": "{{url}}auth/me",
584
+ "host": [
585
+ "{{url}}auth"
586
+ ],
587
+ "path": [
588
+ "me"
589
+ ]
590
+ }
591
+ },
592
+ "status": "OK",
593
+ "code": 200,
594
+ "_postman_previewlanguage": null,
595
+ "header": [
596
+ {
597
+ "key": "X-Powered-By",
598
+ "value": "Express"
599
+ },
600
+ {
601
+ "key": "Vary",
602
+ "value": "Origin"
603
+ },
604
+ {
605
+ "key": "Access-Control-Allow-Credentials",
606
+ "value": "true"
607
+ },
608
+ {
609
+ "key": "Content-Type",
610
+ "value": "application/json; charset=utf-8"
611
+ },
612
+ {
613
+ "key": "Content-Length",
614
+ "value": "345"
615
+ },
616
+ {
617
+ "key": "ETag",
618
+ "value": "W/\"159-47fZZdsFcfa3roNqFKOWHbeUFXE\""
619
+ },
620
+ {
621
+ "key": "Date",
622
+ "value": "Sun, 22 Feb 2026 08:48:09 GMT"
623
+ },
624
+ {
625
+ "key": "Connection",
626
+ "value": "keep-alive"
627
+ },
628
+ {
629
+ "key": "Keep-Alive",
630
+ "value": "timeout=5"
631
+ }
632
+ ],
633
+ "cookie": [],
634
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Update User Berhasil\",\n \"data\": {\n \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZmVhNzYwY2QtNmI5Yy00NGJhLWFjZWQtZjU0ZDBjYTNjZTUzIiwianRpIjoiYzg3NjFkYTQtYjUyNi00ZDIwLWE3MDAtMDE2NWMyMWRjMWRiIiwiaWF0IjoxNzcxNzUwMDg5LCJleHAiOjE3NzE3NTAzODl9.xeC6FZieS0GZzCYvHDIJlo_i2W0TXpIoUAvr6wP9Pck\"\n }\n}"
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "name": "Get Refresh Token",
640
+ "request": {
641
+ "auth": {
642
+ "type": "bearer",
643
+ "bearer": [
644
+ {
645
+ "key": "token",
646
+ "value": "{{token}}",
647
+ "type": "string"
648
+ }
649
+ ]
650
+ },
651
+ "method": "GET",
652
+ "header": [
653
+ {
654
+ "key": "",
655
+ "value": "",
656
+ "type": "text"
657
+ }
658
+ ],
659
+ "url": {
660
+ "raw": "{{url}}auth/refresh-token",
661
+ "host": [
662
+ "{{url}}auth"
663
+ ],
664
+ "path": [
665
+ "refresh-token"
666
+ ]
667
+ }
668
+ },
669
+ "response": [
670
+ {
671
+ "name": "Get Refresh Token",
672
+ "originalRequest": {
673
+ "method": "GET",
674
+ "header": [
675
+ {
676
+ "key": "",
677
+ "value": "",
678
+ "type": "text"
679
+ }
680
+ ],
681
+ "url": {
682
+ "raw": "{{url}}auth/refresh-token",
683
+ "host": [
684
+ "{{url}}auth"
685
+ ],
686
+ "path": [
687
+ "refresh-token"
688
+ ]
689
+ }
690
+ },
691
+ "status": "OK",
692
+ "code": 200,
693
+ "_postman_previewlanguage": null,
694
+ "header": [
695
+ {
696
+ "key": "X-Powered-By",
697
+ "value": "Express"
698
+ },
699
+ {
700
+ "key": "Vary",
701
+ "value": "Origin"
702
+ },
703
+ {
704
+ "key": "Access-Control-Allow-Credentials",
705
+ "value": "true"
706
+ },
707
+ {
708
+ "key": "Content-Type",
709
+ "value": "application/json; charset=utf-8"
710
+ },
711
+ {
712
+ "key": "Content-Length",
713
+ "value": "350"
714
+ },
715
+ {
716
+ "key": "ETag",
717
+ "value": "W/\"15e-58So3LWgKpiU3ecbLw8y8bJ+sXw\""
718
+ },
719
+ {
720
+ "key": "Date",
721
+ "value": "Sun, 22 Feb 2026 08:42:56 GMT"
722
+ },
723
+ {
724
+ "key": "Connection",
725
+ "value": "keep-alive"
726
+ },
727
+ {
728
+ "key": "Keep-Alive",
729
+ "value": "timeout=5"
730
+ }
731
+ ],
732
+ "cookie": [],
733
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Get Access Token Berhasil\",\n \"data\": {\n \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZmVhNzYwY2QtNmI5Yy00NGJhLWFjZWQtZjU0ZDBjYTNjZTUzIiwianRpIjoiNTEwOGEzY2UtNTVlOC00MTQ5LThlMGQtZjRkNjU1Njc1NTE3IiwiaWF0IjoxNzcxNzQ5Nzc2LCJleHAiOjE3NzE3NTAwNzZ9.ISla6XgrMEYDWi3X_Gqu8WK4_YWLG5HgwbvAqpwvVNo\"\n }\n}"
734
+ }
735
+ ]
736
+ },
737
+ {
738
+ "name": "Logout",
739
+ "request": {
740
+ "auth": {
741
+ "type": "bearer",
742
+ "bearer": [
743
+ {
744
+ "key": "token",
745
+ "value": "{{access_token}}",
746
+ "type": "string"
747
+ }
748
+ ]
749
+ },
750
+ "method": "POST",
751
+ "header": [
752
+ {
753
+ "key": "",
754
+ "value": "",
755
+ "type": "text",
756
+ "disabled": true
757
+ }
758
+ ],
759
+ "url": {
760
+ "raw": "{{url}}auth/logout",
761
+ "host": [
762
+ "{{url}}auth"
763
+ ],
764
+ "path": [
765
+ "logout"
766
+ ]
767
+ }
768
+ },
769
+ "response": [
770
+ {
771
+ "name": "Logout",
772
+ "originalRequest": {
773
+ "method": "POST",
774
+ "header": [
775
+ {
776
+ "key": "",
777
+ "value": "",
778
+ "type": "text",
779
+ "disabled": true
780
+ }
781
+ ],
782
+ "url": {
783
+ "raw": "{{url}}auth/logout",
784
+ "host": [
785
+ "{{url}}auth"
786
+ ],
787
+ "path": [
788
+ "logout"
789
+ ]
790
+ }
791
+ },
792
+ "status": "OK",
793
+ "code": 200,
794
+ "_postman_previewlanguage": null,
795
+ "header": [
796
+ {
797
+ "key": "X-Powered-By",
798
+ "value": "Express"
799
+ },
800
+ {
801
+ "key": "Vary",
802
+ "value": "Origin"
803
+ },
804
+ {
805
+ "key": "Access-Control-Allow-Credentials",
806
+ "value": "true"
807
+ },
808
+ {
809
+ "key": "Set-Cookie",
810
+ "value": "refresh_token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; HttpOnly; SameSite=Lax"
811
+ },
812
+ {
813
+ "key": "Content-Type",
814
+ "value": "application/json; charset=utf-8"
815
+ },
816
+ {
817
+ "key": "Content-Length",
818
+ "value": "61"
819
+ },
820
+ {
821
+ "key": "ETag",
822
+ "value": "W/\"3d-+xawJ1yOpTw90h+ZO3B225YNOwM\""
823
+ },
824
+ {
825
+ "key": "Date",
826
+ "value": "Sun, 22 Feb 2026 08:51:16 GMT"
827
+ },
828
+ {
829
+ "key": "Connection",
830
+ "value": "keep-alive"
831
+ },
832
+ {
833
+ "key": "Keep-Alive",
834
+ "value": "timeout=5"
835
+ }
836
+ ],
837
+ "cookie": [],
838
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Logout berhasil\"\n}"
839
+ }
840
+ ]
841
+ }
842
+ ],
843
+ "description": "Api For Manage Authentication"
844
+ },
845
+ {
846
+ "name": "User",
847
+ "item": [
848
+ {
849
+ "name": "Get All Users",
850
+ "request": {
851
+ "auth": {
852
+ "type": "bearer",
853
+ "bearer": [
854
+ {
855
+ "key": "token",
856
+ "value": "{{access_token}}",
857
+ "type": "string"
858
+ }
859
+ ]
860
+ },
861
+ "method": "GET",
862
+ "header": [
863
+ {
864
+ "key": "",
865
+ "value": "",
866
+ "type": "text"
867
+ }
868
+ ],
869
+ "url": {
870
+ "raw": "{{url}}users",
871
+ "host": [
872
+ "{{url}}users"
873
+ ],
874
+ "query": [
875
+ {
876
+ "key": "search",
877
+ "value": null,
878
+ "disabled": true
879
+ },
880
+ {
881
+ "key": "limit",
882
+ "value": null,
883
+ "disabled": true
884
+ },
885
+ {
886
+ "key": "page",
887
+ "value": null,
888
+ "disabled": true
889
+ },
890
+ {
891
+ "key": "sortField",
892
+ "value": null,
893
+ "disabled": true
894
+ },
895
+ {
896
+ "key": "sortOrder",
897
+ "value": null,
898
+ "disabled": true
899
+ }
900
+ ]
901
+ }
902
+ },
903
+ "response": [
904
+ {
905
+ "name": "Get All Users",
906
+ "originalRequest": {
907
+ "method": "GET",
908
+ "header": [
909
+ {
910
+ "key": "",
911
+ "value": "",
912
+ "type": "text"
913
+ }
914
+ ],
915
+ "url": {
916
+ "raw": "{{url}}users",
917
+ "host": [
918
+ "{{url}}users"
919
+ ],
920
+ "query": [
921
+ {
922
+ "key": "search",
923
+ "value": null,
924
+ "disabled": true
925
+ },
926
+ {
927
+ "key": "limit",
928
+ "value": null,
929
+ "disabled": true
930
+ },
931
+ {
932
+ "key": "page",
933
+ "value": null,
934
+ "disabled": true
935
+ },
936
+ {
937
+ "key": "sortField",
938
+ "value": null,
939
+ "disabled": true
940
+ },
941
+ {
942
+ "key": "sortOrder",
943
+ "value": null,
944
+ "disabled": true
945
+ }
946
+ ]
947
+ }
948
+ },
949
+ "status": "OK",
950
+ "code": 200,
951
+ "_postman_previewlanguage": null,
952
+ "header": [
953
+ {
954
+ "key": "X-Powered-By",
955
+ "value": "Express"
956
+ },
957
+ {
958
+ "key": "Vary",
959
+ "value": "Origin"
960
+ },
961
+ {
962
+ "key": "Access-Control-Allow-Credentials",
963
+ "value": "true"
964
+ },
965
+ {
966
+ "key": "Content-Type",
967
+ "value": "application/json; charset=utf-8"
968
+ },
969
+ {
970
+ "key": "Content-Length",
971
+ "value": "470"
972
+ },
973
+ {
974
+ "key": "ETag",
975
+ "value": "W/\"1d6-R1miI/P1WuA9QYTNm+NlIO4kfQA\""
976
+ },
977
+ {
978
+ "key": "Date",
979
+ "value": "Sun, 22 Feb 2026 08:54:09 GMT"
980
+ },
981
+ {
982
+ "key": "Connection",
983
+ "value": "keep-alive"
984
+ },
985
+ {
986
+ "key": "Keep-Alive",
987
+ "value": "timeout=5"
988
+ }
989
+ ],
990
+ "cookie": [],
991
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Berhasil Get All Data\",\n \"data\": [\n {\n \"id\": \"fea760cd-6b9c-44ba-aced-f54d0ca3ce53\",\n \"full_name\": \"John Doe\",\n \"email\": \"johndoe@gmail.com\",\n \"created_at\": \"22-02-2026 15:42:21\",\n \"updated_at\": \"22-02-2026 15:53:29\",\n \"deleted_at\": \"\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"from\": 1,\n \"last_page\": 1,\n \"per_page\": 10,\n \"to\": 1,\n \"total\": 1\n },\n \"links\": {\n \"first\": \"http://localhost:4444/api/users?page=1\",\n \"last\": \"http://localhost:4444/api/users?page=1\",\n \"prev\": null,\n \"next\": null\n }\n}"
992
+ }
993
+ ]
994
+ },
995
+ {
996
+ "name": "Get Detail Users",
997
+ "protocolProfileBehavior": {
998
+ "disableBodyPruning": true
999
+ },
1000
+ "request": {
1001
+ "auth": {
1002
+ "type": "bearer",
1003
+ "bearer": [
1004
+ {
1005
+ "key": "token",
1006
+ "value": "{{access_token}}",
1007
+ "type": "string"
1008
+ }
1009
+ ]
1010
+ },
1011
+ "method": "GET",
1012
+ "header": [],
1013
+ "body": {
1014
+ "mode": "formdata",
1015
+ "formdata": []
1016
+ },
1017
+ "url": {
1018
+ "raw": "{{url}}users/fea760cd-6b9c-44ba-aced-f54d0ca3ce53",
1019
+ "host": [
1020
+ "{{url}}users"
1021
+ ],
1022
+ "path": [
1023
+ "fea760cd-6b9c-44ba-aced-f54d0ca3ce53"
1024
+ ]
1025
+ }
1026
+ },
1027
+ "response": [
1028
+ {
1029
+ "name": "Get Detail Users",
1030
+ "originalRequest": {
1031
+ "method": "GET",
1032
+ "header": [],
1033
+ "body": {
1034
+ "mode": "formdata",
1035
+ "formdata": []
1036
+ },
1037
+ "url": {
1038
+ "raw": "{{url}}users/fea760cd-6b9c-44ba-aced-f54d0ca3ce53",
1039
+ "host": [
1040
+ "{{url}}users"
1041
+ ],
1042
+ "path": [
1043
+ "fea760cd-6b9c-44ba-aced-f54d0ca3ce53"
1044
+ ]
1045
+ }
1046
+ },
1047
+ "status": "OK",
1048
+ "code": 200,
1049
+ "_postman_previewlanguage": null,
1050
+ "header": [
1051
+ {
1052
+ "key": "X-Powered-By",
1053
+ "value": "Express"
1054
+ },
1055
+ {
1056
+ "key": "Vary",
1057
+ "value": "Origin"
1058
+ },
1059
+ {
1060
+ "key": "Access-Control-Allow-Credentials",
1061
+ "value": "true"
1062
+ },
1063
+ {
1064
+ "key": "Content-Type",
1065
+ "value": "application/json; charset=utf-8"
1066
+ },
1067
+ {
1068
+ "key": "Content-Length",
1069
+ "value": "260"
1070
+ },
1071
+ {
1072
+ "key": "ETag",
1073
+ "value": "W/\"104-IieH6fixx9liTe5/R+n9i1dSMko\""
1074
+ },
1075
+ {
1076
+ "key": "Date",
1077
+ "value": "Sun, 22 Feb 2026 08:54:20 GMT"
1078
+ },
1079
+ {
1080
+ "key": "Connection",
1081
+ "value": "keep-alive"
1082
+ },
1083
+ {
1084
+ "key": "Keep-Alive",
1085
+ "value": "timeout=5"
1086
+ }
1087
+ ],
1088
+ "cookie": [],
1089
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Berhasil Get Detail Data\",\n \"data\": {\n \"id\": \"fea760cd-6b9c-44ba-aced-f54d0ca3ce53\",\n \"full_name\": \"John Doe\",\n \"email\": \"johndoe@gmail.com\",\n \"created_at\": \"22-02-2026 15:42:21\",\n \"updated_at\": \"22-02-2026 15:53:29\",\n \"deleted_at\": \"\"\n }\n}"
1090
+ }
1091
+ ]
1092
+ },
1093
+ {
1094
+ "name": "Create Users",
1095
+ "request": {
1096
+ "auth": {
1097
+ "type": "bearer",
1098
+ "bearer": [
1099
+ {
1100
+ "key": "token",
1101
+ "value": "{{access_token}}",
1102
+ "type": "string"
1103
+ }
1104
+ ]
1105
+ },
1106
+ "method": "POST",
1107
+ "header": [],
1108
+ "body": {
1109
+ "mode": "formdata",
1110
+ "formdata": [
1111
+ {
1112
+ "key": "full_name",
1113
+ "value": "Jane Doe",
1114
+ "type": "text",
1115
+ "uuid": "6cb390f9-9e2b-4bdc-9fca-f91c6edef2b6"
1116
+ },
1117
+ {
1118
+ "key": "email",
1119
+ "value": "janedoe@gmail.com",
1120
+ "type": "text",
1121
+ "uuid": "eac4f461-08ef-4fb5-b293-15b074d67e2f"
1122
+ },
1123
+ {
1124
+ "key": "password",
1125
+ "value": "123456",
1126
+ "type": "text",
1127
+ "uuid": "9c238c1e-3d4f-457c-be5e-8e862135f75e"
1128
+ }
1129
+ ]
1130
+ },
1131
+ "url": {
1132
+ "raw": "{{url}}users",
1133
+ "host": [
1134
+ "{{url}}users"
1135
+ ]
1136
+ }
1137
+ },
1138
+ "response": [
1139
+ {
1140
+ "name": "Create Users",
1141
+ "originalRequest": {
1142
+ "method": "POST",
1143
+ "header": [],
1144
+ "body": {
1145
+ "mode": "formdata",
1146
+ "formdata": [
1147
+ {
1148
+ "key": "full_name",
1149
+ "value": "Jane Doe",
1150
+ "type": "text",
1151
+ "uuid": "6cb390f9-9e2b-4bdc-9fca-f91c6edef2b6"
1152
+ },
1153
+ {
1154
+ "key": "email",
1155
+ "value": "janedoe@gmail.com",
1156
+ "type": "text",
1157
+ "uuid": "eac4f461-08ef-4fb5-b293-15b074d67e2f"
1158
+ },
1159
+ {
1160
+ "key": "password",
1161
+ "value": "123456",
1162
+ "type": "text",
1163
+ "uuid": "9c238c1e-3d4f-457c-be5e-8e862135f75e"
1164
+ }
1165
+ ]
1166
+ },
1167
+ "url": {
1168
+ "raw": "{{url}}users",
1169
+ "host": [
1170
+ "{{url}}users"
1171
+ ]
1172
+ }
1173
+ },
1174
+ "status": "Created",
1175
+ "code": 201,
1176
+ "_postman_previewlanguage": null,
1177
+ "header": [
1178
+ {
1179
+ "key": "X-Powered-By",
1180
+ "value": "Express"
1181
+ },
1182
+ {
1183
+ "key": "Vary",
1184
+ "value": "Origin"
1185
+ },
1186
+ {
1187
+ "key": "Access-Control-Allow-Credentials",
1188
+ "value": "true"
1189
+ },
1190
+ {
1191
+ "key": "Content-Type",
1192
+ "value": "application/json; charset=utf-8"
1193
+ },
1194
+ {
1195
+ "key": "Content-Length",
1196
+ "value": "170"
1197
+ },
1198
+ {
1199
+ "key": "ETag",
1200
+ "value": "W/\"aa-DJoQtgYvgf+p/spIReYanIZEYpk\""
1201
+ },
1202
+ {
1203
+ "key": "Date",
1204
+ "value": "Sun, 22 Feb 2026 09:13:36 GMT"
1205
+ },
1206
+ {
1207
+ "key": "Connection",
1208
+ "value": "keep-alive"
1209
+ },
1210
+ {
1211
+ "key": "Keep-Alive",
1212
+ "value": "timeout=5"
1213
+ }
1214
+ ],
1215
+ "cookie": [],
1216
+ "body": "{\n \"status\": true,\n \"status_code\": 201,\n \"message\": \"Create User Berhasil\",\n \"data\": {\n \"id\": \"ec2d2712-7349-4702-80a9-385c746eb368\",\n \"full_name\": \"Jane Doe\",\n \"email\": \"janedoe@gmail.com\"\n }\n}"
1217
+ }
1218
+ ]
1219
+ },
1220
+ {
1221
+ "name": "Update Users",
1222
+ "request": {
1223
+ "auth": {
1224
+ "type": "bearer",
1225
+ "bearer": [
1226
+ {
1227
+ "key": "token",
1228
+ "value": "{{access_token}}",
1229
+ "type": "string"
1230
+ }
1231
+ ]
1232
+ },
1233
+ "method": "PUT",
1234
+ "header": [],
1235
+ "body": {
1236
+ "mode": "formdata",
1237
+ "formdata": [
1238
+ {
1239
+ "key": "full_name",
1240
+ "value": "Jane Doe",
1241
+ "type": "text",
1242
+ "uuid": "6cb390f9-9e2b-4bdc-9fca-f91c6edef2b6"
1243
+ },
1244
+ {
1245
+ "key": "email",
1246
+ "value": "janedoe@gmail.com",
1247
+ "type": "text",
1248
+ "uuid": "eac4f461-08ef-4fb5-b293-15b074d67e2f",
1249
+ "disabled": true
1250
+ },
1251
+ {
1252
+ "key": "password",
1253
+ "value": "",
1254
+ "type": "text",
1255
+ "uuid": "adefcb20-6113-4eb3-a922-4890d77ace88",
1256
+ "disabled": true
1257
+ }
1258
+ ]
1259
+ },
1260
+ "url": {
1261
+ "raw": "{{url}}users/ec2d2712-7349-4702-80a9-385c746eb368",
1262
+ "host": [
1263
+ "{{url}}users"
1264
+ ],
1265
+ "path": [
1266
+ "ec2d2712-7349-4702-80a9-385c746eb368"
1267
+ ]
1268
+ }
1269
+ },
1270
+ "response": [
1271
+ {
1272
+ "name": "Update Users",
1273
+ "originalRequest": {
1274
+ "method": "PUT",
1275
+ "header": [],
1276
+ "body": {
1277
+ "mode": "formdata",
1278
+ "formdata": [
1279
+ {
1280
+ "key": "full_name",
1281
+ "value": "Jane Doe",
1282
+ "type": "text",
1283
+ "uuid": "6cb390f9-9e2b-4bdc-9fca-f91c6edef2b6"
1284
+ },
1285
+ {
1286
+ "key": "email",
1287
+ "value": "janedoe@gmail.com",
1288
+ "type": "text",
1289
+ "uuid": "eac4f461-08ef-4fb5-b293-15b074d67e2f",
1290
+ "disabled": true
1291
+ },
1292
+ {
1293
+ "key": "password",
1294
+ "value": "",
1295
+ "type": "text",
1296
+ "uuid": "adefcb20-6113-4eb3-a922-4890d77ace88",
1297
+ "disabled": true
1298
+ }
1299
+ ]
1300
+ },
1301
+ "url": {
1302
+ "raw": "{{url}}users/ec2d2712-7349-4702-80a9-385c746eb368",
1303
+ "host": [
1304
+ "{{url}}users"
1305
+ ],
1306
+ "path": [
1307
+ "ec2d2712-7349-4702-80a9-385c746eb368"
1308
+ ]
1309
+ }
1310
+ },
1311
+ "status": "OK",
1312
+ "code": 200,
1313
+ "_postman_previewlanguage": null,
1314
+ "header": [
1315
+ {
1316
+ "key": "X-Powered-By",
1317
+ "value": "Express"
1318
+ },
1319
+ {
1320
+ "key": "Vary",
1321
+ "value": "Origin"
1322
+ },
1323
+ {
1324
+ "key": "Access-Control-Allow-Credentials",
1325
+ "value": "true"
1326
+ },
1327
+ {
1328
+ "key": "Content-Type",
1329
+ "value": "application/json; charset=utf-8"
1330
+ },
1331
+ {
1332
+ "key": "Content-Length",
1333
+ "value": "170"
1334
+ },
1335
+ {
1336
+ "key": "ETag",
1337
+ "value": "W/\"aa-cQZAVk18G8vFrLXPJOOilRtwrRg\""
1338
+ },
1339
+ {
1340
+ "key": "Date",
1341
+ "value": "Sun, 22 Feb 2026 09:25:41 GMT"
1342
+ },
1343
+ {
1344
+ "key": "Connection",
1345
+ "value": "keep-alive"
1346
+ },
1347
+ {
1348
+ "key": "Keep-Alive",
1349
+ "value": "timeout=5"
1350
+ }
1351
+ ],
1352
+ "cookie": [],
1353
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Update User Berhasil\",\n \"data\": {\n \"id\": \"ec2d2712-7349-4702-80a9-385c746eb368\",\n \"full_name\": \"Jane Doe\",\n \"email\": \"janedoe@gmail.com\"\n }\n}"
1354
+ }
1355
+ ]
1356
+ },
1357
+ {
1358
+ "name": "Delete Users",
1359
+ "request": {
1360
+ "auth": {
1361
+ "type": "bearer",
1362
+ "bearer": [
1363
+ {
1364
+ "key": "token",
1365
+ "value": "{{access_token}}",
1366
+ "type": "string"
1367
+ }
1368
+ ]
1369
+ },
1370
+ "method": "DELETE",
1371
+ "header": [],
1372
+ "body": {
1373
+ "mode": "formdata",
1374
+ "formdata": []
1375
+ },
1376
+ "url": {
1377
+ "raw": "{{url}}users/ec2d2712-7349-4702-80a9-385c746eb368",
1378
+ "host": [
1379
+ "{{url}}users"
1380
+ ],
1381
+ "path": [
1382
+ "ec2d2712-7349-4702-80a9-385c746eb368"
1383
+ ]
1384
+ }
1385
+ },
1386
+ "response": [
1387
+ {
1388
+ "name": "Delete Users",
1389
+ "originalRequest": {
1390
+ "method": "DELETE",
1391
+ "header": [],
1392
+ "body": {
1393
+ "mode": "formdata",
1394
+ "formdata": []
1395
+ },
1396
+ "url": {
1397
+ "raw": "{{url}}users/ec2d2712-7349-4702-80a9-385c746eb368",
1398
+ "host": [
1399
+ "{{url}}users"
1400
+ ],
1401
+ "path": [
1402
+ "ec2d2712-7349-4702-80a9-385c746eb368"
1403
+ ]
1404
+ }
1405
+ },
1406
+ "status": "OK",
1407
+ "code": 200,
1408
+ "_postman_previewlanguage": null,
1409
+ "header": [
1410
+ {
1411
+ "key": "X-Powered-By",
1412
+ "value": "Express"
1413
+ },
1414
+ {
1415
+ "key": "Vary",
1416
+ "value": "Origin"
1417
+ },
1418
+ {
1419
+ "key": "Access-Control-Allow-Credentials",
1420
+ "value": "true"
1421
+ },
1422
+ {
1423
+ "key": "Content-Type",
1424
+ "value": "application/json; charset=utf-8"
1425
+ },
1426
+ {
1427
+ "key": "Content-Length",
1428
+ "value": "66"
1429
+ },
1430
+ {
1431
+ "key": "ETag",
1432
+ "value": "W/\"42-Lh8hL9Noo6kV9FZT6ssIrDu2xlU\""
1433
+ },
1434
+ {
1435
+ "key": "Date",
1436
+ "value": "Sun, 22 Feb 2026 09:26:21 GMT"
1437
+ },
1438
+ {
1439
+ "key": "Connection",
1440
+ "value": "keep-alive"
1441
+ },
1442
+ {
1443
+ "key": "Keep-Alive",
1444
+ "value": "timeout=5"
1445
+ }
1446
+ ],
1447
+ "cookie": [],
1448
+ "body": "{\n \"status\": true,\n \"status_code\": 200,\n \"message\": \"Delete User Berhasil\"\n}"
1449
+ }
1450
+ ]
1451
+ }
1452
+ ],
1453
+ "description": "Api For Manage Users"
1454
+ }
1455
+ ],
1456
+ "auth": {
1457
+ "type": "bearer",
1458
+ "bearer": [
1459
+ {
1460
+ "key": "token",
1461
+ "value": "{{access_token}}",
1462
+ "type": "string"
1463
+ }
1464
+ ]
1465
+ },
1466
+ "event": [
1467
+ {
1468
+ "listen": "prerequest",
1469
+ "script": {
1470
+ "type": "text/javascript",
1471
+ "packages": {},
1472
+ "requests": {},
1473
+ "exec": [
1474
+ ""
1475
+ ]
1476
+ }
1477
+ },
1478
+ {
1479
+ "listen": "test",
1480
+ "script": {
1481
+ "type": "text/javascript",
1482
+ "packages": {},
1483
+ "requests": {},
1484
+ "exec": [
1485
+ ""
1486
+ ]
1487
+ }
1488
+ }
1489
+ ],
1490
+ "variable": [
1491
+ {
1492
+ "key": "url",
1493
+ "value": "http://localhost:3333"
1494
+ },
1495
+ {
1496
+ "key": "access_token",
1497
+ "value": ""
1498
+ }
1499
+ ]
1500
+ }