{"info":{"_postman_id":"5f239936-2554-407a-a7f8-7d71e935e5fe","name":"RUST CRUD BASIC","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"4324137","collectionId":"5f239936-2554-407a-a7f8-7d71e935e5fe","publishedId":"2sAYkGLega","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-21T09:46:35.000Z"},"item":[{"name":"Items","item":[{"name":"Create","id":"bcf8f183-bc8e-490a-8702-f1d2e1d27bd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"route items ga\",\n    \"description\": \"route items pp\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/items","urlObject":{"protocol":"http","port":"9009","path":["items"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c85ae633-48fa-44ba-8f8e-817720751091","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"change config to folder\",\n    \"description\": \"mudah-mudahan ok\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"132"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"content-type","value":"application/json"},{"key":"access-control-allow-credentials","value":"false"},{"key":"vary","value":"Origin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"date","value":"Mon, 24 Mar 2025 09:52:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"description\": \"mudah-mudahan ok\",\n        \"id\": 41,\n        \"name\": \"change config to folder\"\n    }\n}"}],"_postman_id":"bcf8f183-bc8e-490a-8702-f1d2e1d27bd0"},{"name":"List","id":"b0245dff-8c8e-4407-a51c-38f73b749c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:9009/items?page=1&limit=5&sort=name&field=ASC&filter[id]=4&filter[name]=admin&filter[description]=mudah","urlObject":{"protocol":"http","port":"9009","path":["items"],"host":["127","0","0","1"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"5"},{"key":"sort","value":"name"},{"key":"field","value":"ASC"},{"key":"filter[id]","value":"4"},{"key":"filter[name]","value":"admin"},{"key":"filter[description]","value":"mudah"}],"variable":[]}},"response":[{"id":"b75d4525-121a-4f27-b5c9-bbcb2271f581","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:9009/items?page=1&limit=5&sort=name&field=ASC&filter[id]=10&filter[name]=test&filter[description]=mudah","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["items"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"5"},{"key":"sort","value":"name"},{"key":"field","value":"ASC"},{"key":"filter[id]","value":"10","type":"text"},{"key":"filter[name]","value":"test","type":"text"},{"key":"filter[description]","value":"mudah"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"487"},{"key":"content-type","value":"application/json"},{"key":"access-control-allow-credentials","value":"false"},{"key":"vary","value":"Origin"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"x-content-type-options","value":"nosniff"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"date","value":"Tue, 25 Mar 2025 10:31:20 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"items\": [\n            {\n                \"description\": \"mudah-mudahan ok\",\n                \"id\": 4,\n                \"name\": \"change config to folder\"\n            },\n            {\n                \"description\": \"mudah-mudahan ok\",\n                \"id\": 5,\n                \"name\": \"change config to folder\"\n            },\n            {\n                \"description\": \"mudah-mudahan ok\",\n                \"id\": 6,\n                \"name\": \"change config to folder\"\n            },\n            {\n                \"description\": \"mudah-mudahan ok\",\n                \"id\": 7,\n                \"name\": \"change config to folder\"\n            },\n            {\n                \"description\": \"mudah-mudahan ok\",\n                \"id\": 8,\n                \"name\": \"change config to folder\"\n            }\n        ],\n        \"limit\": 5,\n        \"page\": 1,\n        \"total\": 39,\n        \"totalPage\": 8\n    }\n}"}],"_postman_id":"b0245dff-8c8e-4407-a51c-38f73b749c53"},{"name":"Get By ID","id":"959a7203-9cb6-43b7-ad4c-016bdd09587a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:9009/items/:id","urlObject":{"protocol":"http","port":"9009","path":["items",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"5ecc51dc-354c-4417-a256-cbf4607ffc9b","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:9009/items/:id","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["items",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"131"},{"key":"access-control-allow-credentials","value":"false"},{"key":"content-type","value":"application/json"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"cache-control","value":"no-store"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"x-content-type-options","value":"nosniff"},{"key":"date","value":"Mon, 24 Mar 2025 10:27:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"description\": \"mudah-mudahan ok\",\n        \"id\": 3,\n        \"name\": \"change config to folder\"\n    }\n}"}],"_postman_id":"959a7203-9cb6-43b7-ad4c-016bdd09587a"},{"name":"Update","id":"ee96939f-1c37-42de-87ec-5a3e16fd8397","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"coco\",\n    \"description\": \"coco\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/items/:id","urlObject":{"protocol":"http","port":"9009","path":["items",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"5105b8b1-2b67-4eab-a4d1-0e875dd61b2a","name":"200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"test update\",\n    \"description\": \"coba update\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://127.0.0.1:9009/items/:id","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["items",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"114"},{"key":"x-content-type-options","value":"nosniff"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-credentials","value":"false"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"vary","value":"Origin"},{"key":"content-type","value":"application/json"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"date","value":"Mon, 24 Mar 2025 10:38:02 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"description\": \"coba update\",\n        \"id\": 3,\n        \"name\": \"test update\"\n    }\n}"}],"_postman_id":"ee96939f-1c37-42de-87ec-5a3e16fd8397"},{"name":"Delete","id":"188a5869-6b75-4049-9e2f-64f27406664d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:9009/items/:id","urlObject":{"protocol":"http","port":"9009","path":["items",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"10","key":"id"}]}},"response":[{"id":"cda06f6b-6fba-4e5d-b42c-52ae9d9c3bdb","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://127.0.0.1:9009/items/:id","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["items",":id"],"variable":[{"key":"id","value":"42"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"41"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"content-type","value":"application/json"},{"key":"cache-control","value":"no-store"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"vary","value":"Origin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"access-control-allow-credentials","value":"false"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"date","value":"Mon, 24 Mar 2025 10:39:12 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\"\n}"}],"_postman_id":"188a5869-6b75-4049-9e2f-64f27406664d"}],"id":"303ba114-5afd-42f5-ae51-c8859c570735","_postman_id":"303ba114-5afd-42f5-ae51-c8859c570735","description":""},{"name":"Users","item":[{"name":"Create","id":"6e8c6328-04af-439f-9436-10d17683b885","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"cto\",\r\n    \"email\": \"cto@gmail.com\",\r\n    \"password\": \"secret\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/users","urlObject":{"protocol":"http","port":"9009","path":["users"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"f22e2c38-ea6b-4005-ba15-de7ddb49e9d9","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"ceo\",\r\n    \"email\": \"ceo@gmail.com\",\r\n    \"password\": \"secret\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"107"},{"key":"access-control-allow-credentials","value":"false"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"content-type","value":"application/json"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"x-content-type-options","value":"nosniff"},{"key":"date","value":"Mon, 07 Apr 2025 07:17:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"email\": \"ceo@gmail.com\",\n        \"id\": 14,\n        \"username\": \"ceo\"\n    }\n}"}],"_postman_id":"6e8c6328-04af-439f-9436-10d17683b885"},{"name":"List","id":"a7aab39e-f0cd-4195-b577-3df56ac3277c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:9009/users?page=1&limit=5&sort=name&field=ASC&filter[id]=1&filter[username]=admin&filter[email]=admin@gmail.com","urlObject":{"protocol":"http","port":"9009","path":["users"],"host":["127","0","0","1"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"5"},{"key":"sort","value":"name"},{"key":"field","value":"ASC"},{"key":"filter[id]","value":"1"},{"key":"filter[username]","value":"admin"},{"key":"filter[email]","value":"admin@gmail.com"}],"variable":[]}},"response":[{"id":"e7b51334-4325-47c0-aad6-37e76ae739c3","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:9009/users?page=1&limit=5&sort=name&field=ASC&filter[id]=1&filter[username]=admin&filter[email]=ceo@gmail.com","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["users"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"5"},{"key":"sort","value":"name"},{"key":"field","value":"ASC"},{"key":"filter[id]","value":"1"},{"key":"filter[username]","value":"admin"},{"key":"filter[email]","value":"ceo@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"772"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"access-control-allow-credentials","value":"false"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"x-content-type-options","value":"nosniff"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"content-type","value":"application/json"},{"key":"vary","value":"Origin"},{"key":"cache-control","value":"no-store"},{"key":"date","value":"Mon, 07 Apr 2025 07:17:44 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"limit\": 5,\n        \"page\": 1,\n        \"total\": 12,\n        \"totalPage\": 3,\n        \"users\": [\n            {\n                \"email\": \"admin@gmail.com\",\n                \"id\": 1,\n                \"username\": \"admin\"\n            },\n            {\n                \"email\": \"superadmin@gmail.com\",\n                \"id\": 2,\n                \"username\": \"superadmin\"\n            },\n            {\n                \"email\": \"staff@gmail.com\",\n                \"id\": 3,\n                \"username\": \"staff\"\n            },\n            {\n                \"email\": \"resident@gmail.com\",\n                \"id\": 9,\n                \"username\": \"resident\"\n            },\n            {\n                \"email\": \"faculty@gmail.com\",\n                \"id\": 10,\n                \"username\": \"faculty\"\n            }\n        ]\n    }\n}"}],"_postman_id":"a7aab39e-f0cd-4195-b577-3df56ac3277c"},{"name":"Get By ID","id":"981916f2-96f4-4a25-bbe5-7a61d1196eda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:9009/users/:id","urlObject":{"protocol":"http","port":"9009","path":["users",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"a3294993-1a74-4633-a201-0ee24802014b","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:9009/users/:id","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["users",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"110"},{"key":"x-content-type-options","value":"nosniff"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"content-type","value":"application/json"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-credentials","value":"false"},{"key":"date","value":"Mon, 07 Apr 2025 07:20:57 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"email\": \"admin@gmail.com\",\n        \"id\": 1,\n        \"username\": \"admin\"\n    }\n}"}],"_postman_id":"981916f2-96f4-4a25-bbe5-7a61d1196eda"},{"name":"Update","id":"583d510b-29b8-4a59-906d-9ccb626e17f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"cfo\",\n    \"email\": \"cfo@gmail.com\",\n    \"password\": \"secret\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/users/:id","urlObject":{"protocol":"http","port":"9009","path":["users",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"16","key":"id"}]}},"response":[{"id":"2e1f3cde-9ea6-41f1-bcb1-c8fa87209448","name":"200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"ceo\",\n    \"email\": \"ceo@gmail.com\",\n    \"password\": \"secret\" // OPTIONAL\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://127.0.0.1:9009/users/:id","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["users",":id"],"variable":[{"key":"id","value":"14"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"181"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"content-type","value":"application/json"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"x-content-type-options","value":"nosniff"},{"key":"vary","value":"Origin"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-credentials","value":"false"},{"key":"date","value":"Mon, 07 Apr 2025 07:33:52 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"email\": \"ceo@gmail.com\",\n        \"id\": 14,\n        \"username\": \"ceo\"\n    }\n}"}],"_postman_id":"583d510b-29b8-4a59-906d-9ccb626e17f6"},{"name":"Delete","id":"c8544c6a-50f4-47f4-bfa5-830c2f77c279","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:9009/users/:id","urlObject":{"protocol":"http","port":"9009","path":["users",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"18","key":"id"}]}},"response":[{"id":"3234cb0e-f108-4adb-bd8c-f22d39888614","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://127.0.0.1:9009/users/:id","protocol":"http","host":["127","0","0","1"],"port":"9009","path":["users",":id"],"variable":[{"key":"id","value":"7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"41"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"content-type","value":"application/json"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"cache-control","value":"no-store"},{"key":"access-control-allow-credentials","value":"false"},{"key":"vary","value":"Origin"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"x-content-type-options","value":"nosniff"},{"key":"date","value":"Mon, 07 Apr 2025 07:49:48 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\"\n}"}],"_postman_id":"c8544c6a-50f4-47f4-bfa5-830c2f77c279"}],"id":"4eaab62d-698f-4de2-8a98-1ad9db02c5c7","_postman_id":"4eaab62d-698f-4de2-8a98-1ad9db02c5c7","description":""},{"name":"Login","event":[{"listen":"test","script":{"id":"92326016-fbb5-4c2c-8e49-974eee05c68e","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    var jsonData = JSON.parse(responseBody);\r","    postman.setEnvironmentVariable(\"TOKEN\", jsonData.responseData.token);\r","});"],"type":"text/javascript","packages":{}}}],"id":"94911313-aa47-47db-9802-7849f9a6648e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"admin@gmail.com\",\r\n    \"password\": \"secret\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/auth/login","urlObject":{"protocol":"http","port":"9009","path":["auth","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"9c3697a0-2af4-4e84-869c-b0062045f54d","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"admin@gmail.com\", // username or email\r\n    \"password\": \"secret\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:9009/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"213"},{"key":"access-control-allow-headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, Origin, Cookie, Timestamp"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"access-control-allow-credentials","value":"false"},{"key":"content-type","value":"application/json"},{"key":"cache-control","value":"no-store"},{"key":"x-content-type-options","value":"nosniff"},{"key":"vary","value":"Origin"},{"key":"content-security-policy","value":"default-src 'self'"},{"key":"date","value":"Mon, 07 Apr 2025 10:11:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"responseCode\": \"00\",\n    \"responseDesc\": \"OK\",\n    \"responseData\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsIm5hbWUiOiJ0ZXN0IiwiZXhwIjoxMDAwMDAwMDAwMH0.Gg7T7UIeVxNaTfb3AF4RXrDvn9LIdsmNYk-TeO8pKu0\"\n    }\n}"}],"_postman_id":"94911313-aa47-47db-9802-7849f9a6648e"}]}