{"info":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","description":"<html><head></head><body><p>This is the API Documentation for the Golang Starter Template use Fiber.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35364578","collectionId":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","publishedId":"2sB2cPjkcj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-30T00:08:57.000Z"},"item":[{"name":"User","item":[{"name":"Me","id":"bf39a9bd-fcae-4f53-87fe-3a94da0498b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/users/me","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","users","me"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"8c6fd34a-4e5f-4d88-9c66-ed9222f7f77e","name":"Success get profile","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:41:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"230"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"success get detail\",\n    \"data\": {\n        \"name\": \"Paundra Pujo Darmawan\",\n        \"username\": \"pujo\",\n        \"email\": \"ojupmawan@gmail.com\",\n        \"contact\": \"081234567890\",\n        \"subscription\": false,\n        \"active_point\": 0,\n        \"level_point\": 0,\n        \"rank\": \"Bronze\"\n    }\n}"}],"_postman_id":"bf39a9bd-fcae-4f53-87fe-3a94da0498b9"},{"name":"Update Profile","id":"849adbcb-8215-4076-8f09-f71751793d0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"paundra","type":"text","uuid":"48e34d2e-f95b-40a3-ad81-9ff0d82d3b92"},{"key":"profile_picture","type":"file","uuid":"54fdf0ff-8a81-4aaf-912a-263a56126069","src":"postman-cloud:///1effcaff-3d53-4f90-b1e5-65c7ec50e15c"}]},"url":"http://localhost:3000/api/v1/users/update","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","users","update"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"80babf83-41e1-446c-ae00-6f038914185b","name":"Success Update User","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"paundra","type":"text","uuid":"48e34d2e-f95b-40a3-ad81-9ff0d82d3b92"},{"key":"profile_picture","type":"file","uuid":"54fdf0ff-8a81-4aaf-912a-263a56126069","src":"postman-cloud:///1effcaff-3d53-4f90-b1e5-65c7ec50e15c"}]},"url":"http://localhost:3000/api/v1/users/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:58:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"303"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"update user success\",\n    \"data\": {\n        \"name\": \"Paundra Pujo Darmawan\",\n        \"username\": \"paundra\",\n        \"email\": \"ojupmawan@gmail.com\",\n        \"contact\": \"081234567890\",\n        \"profile_picture\": \"https://pujobucket.s3.ap-southeast-1.amazonaws.com/profile-picture/ProfilePicture-a0fc9769-eb56-4b68-ba4d-7406c70bdc35\"\n    }\n}"}],"_postman_id":"849adbcb-8215-4076-8f09-f71751793d0a"},{"name":"Subscribe","id":"523f7f97-cc06-4bce-ad56-87067a868b2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 399000,\n    \"email\": \"ojupmawan@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/subscribe","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","users","subscribe"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"65928bc4-40ae-491b-bcf7-2c481784cdc4","name":"Success Create Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 399000,\n    \"email\": \"ojupmawan@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/subscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 23:06:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"174"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Transaction processed successfully\",\n    \"data\": {\n        \"invoice\": \"https://app.sandbox.midtrans.com/snap/v4/redirection/df2cdc02-67e5-4b23-b021-3c4878d10aef\"\n    }\n}"}],"_postman_id":"523f7f97-cc06-4bce-ad56-87067a868b2f"}],"id":"493a1b28-363c-4da2-9cf5-c04dadbcfc3e","_postman_id":"493a1b28-363c-4da2-9cf5-c04dadbcfc3e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}}},{"name":"Authenticate","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"523b6398-d1c7-4c7c-a629-00e873d442dd","exec":["// Parse the response JSON","const jsonResponse = pm.response.json();","","// Extract the token from the response","const token = jsonResponse.data.token;","","// Save the token to a collection variable","pm.collectionVariables.set(\"token\", token);","","// Log the token for debugging purposes","console.log(\"Token set in collection:\", token);"],"type":"text/javascript","packages":{}}}],"id":"10ea45f9-84ae-4557-95d2-587549bdf2f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ojupmawan@gmail.com\",\n    \"password\": \"pujoganteng123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","users","login"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"2ff05d57-e74d-4d7c-a51c-35b68f7b1e2d","name":"User not verified yet","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ojupmawan@gmail.com\",\n    \"password\": \"pujoganteng123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:30:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"register failed\",\n    \"error\": \"user not verified\"\n}"},{"id":"3f445e9e-aa33-42ec-9a81-3bc8e4699374","name":"Success Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ojupmawan@gmail.com\",\n    \"password\": \"pujoganteng123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:37:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"323"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"login success\",\n    \"data\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiYTBmYzk3NjktZWI1Ni00YjY4LWJhNGQtNzQwNmM3MGJkYzM1Iiwicm9sZSI6InVzZXIiLCJpc3MiOiJGUCBTV0UgS0VMT01QT0sgMyIsImV4cCI6MTc0MzI5NTA3NiwiaWF0IjoxNzQzMjg3ODc2fQ.xvJTZT-eV6jGBaoyc_FpPTq0xgpISqDI7KKaezvTJKw\",\n        \"role\": \"user\"\n    }\n}"}],"_postman_id":"10ea45f9-84ae-4557-95d2-587549bdf2f5"},{"name":"Register","id":"ad0b449e-5bb3-405a-b681-d89064c1f38d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Paundra Pujo Darmawan\",\n    \"username\": \"pujo\",\n    \"email\": \"ojupmawan@gmail.com\",\n    \"password\": \"pujoganteng123\",\n    \"contact\": \"081234567890\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/register","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","users","register"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"69f54cd6-7764-412c-9c7c-54137fa7d1e8","name":"Success Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Paundra Pujo Darmawan\",\n    \"username\": \"pujo\",\n    \"email\": \"ojupmawan@gmail.com\",\n    \"password\": \"pujoganteng123\",\n    \"contact\": \"081234567890\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:27:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"102"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"register success\",\n    \"data\": {\n        \"email\": \"ojupmawan@gmail.com\",\n        \"username\": \"pujo\"\n    }\n}"},{"id":"bb74be8a-2117-4a5c-ab85-b79316f714ad","name":"Email Already Exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Paundra Pujo Darmawan\",\n    \"username\": \"pujo\",\n    \"email\": \"ojupmawan@gmail.com\",\n    \"password\": \"pujoganteng123\",\n    \"contact\": \"081234567890\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:29:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"76"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"register failed\",\n    \"error\": \"email already exists\"\n}"}],"_postman_id":"ad0b449e-5bb3-405a-b681-d89064c1f38d"},{"name":"Re-send Verify Email","id":"ae935479-e6e3-4519-a6e1-1f076625902d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ojupmawan@gmail.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/send_verify","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","users","send_verify"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"749f2c12-2664-4e50-ac9a-a5a01549716f","name":"Success Re-send email verification","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ojupmawan@gmail.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/send_verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 22:35:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"send verify email success\"\n}"}],"_postman_id":"ae935479-e6e3-4519-a6e1-1f076625902d"}],"id":"ca0a5a0b-3e99-45e7-b777-f5b06dabcc40","_postman_id":"ca0a5a0b-3e99-45e7-b777-f5b06dabcc40","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}}},{"name":"Rank","item":[{"name":"Leaderboard","id":"3e26711b-158b-48c6-ab62-91a147cd954e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/leaderboard","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","v1","leaderboard"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e26711b-158b-48c6-ab62-91a147cd954e"}],"id":"855f0217-7315-4f6e-b694-c418ffdc29d0","_postman_id":"855f0217-7315-4f6e-b694-c418ffdc29d0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}}},{"name":"Ping!","id":"850583a1-e23a-4081-885e-b3ed609667c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/ping","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","id":"be4936ce-4f13-4d40-8fcb-3bd2ce329292","name":"Go-Starter-Template","type":"collection"}},"urlObject":{"path":["api","ping"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"ac9743c4-78ed-41ee-a564-82d1a3dc9c63","name":"Success running","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/ping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 29 Mar 2025 23:20:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"35"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Max-Age","value":"86400"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, OPTIONS, PUT, DELETE, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Origin, Content-Type, api_key, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Content-Length"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Ratelimit-Limit","value":"10"},{"key":"X-Ratelimit-Remaining","value":"9"},{"key":"X-Ratelimit-Reset","value":"1"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"pong, its works. test\"\n}"}],"_postman_id":"850583a1-e23a-4081-885e-b3ed609667c3"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"30220839-57cd-49d9-b2ff-497562850e58","type":"text/javascript","packages":{},"exec":["// Check if the token exists in the collection variables","const token = pm.collectionVariables.get(\"token\");","","if (!token) {","    console.warn(\"Token not set. Ensure login request is executed to set the token.\");","} else {","    // Automatically set the Authorization header with the token","    pm.request.headers.add({","        key: \"Authorization\",","        value: `Bearer ${token}`","    });","","    console.log(\"Authorization header set with token:\", token);","}"]}},{"listen":"test","script":{"id":"247203f6-01c9-4c78-8498-39ac9211ac53","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"http://localhost:3000","type":"string"},{"key":"token","value":"","type":"string"}]}