{"info":{"_postman_id":"7a51fd31-fb6d-4d15-9eda-65e7ae896e5b","name":"My APP","description":"<html><head></head><body><p>Simple RestAPI task BE ads x msib6</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24567567","collectionId":"7a51fd31-fb6d-4d15-9eda-65e7ae896e5b","publishedId":"2sA2rDy1do","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-02T04:34:46.000Z"},"item":[{"name":"register","id":"c911a241-b165-48f8-8bc6-5725c959e4eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"danistmikwp@gmail.com","type":"text"},{"key":"name","value":"Dani Kurniawan","type":"text"},{"key":"password","value":"Bandulan113","type":"text"},{"key":"phone","value":"08978654774","type":"text"}]},"url":"http://localhost:5000/api/users/register","description":"<p>email : email or null</p>\n<p>phone : string or null</p>\n<p>required : email or phone , name , password</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6bd0c895-a1d7-44aa-9d29-864669eac4fb","name":"register","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"danistmikwp@gmail.com","type":"text"},{"key":"name","value":"Dani Kurniawan","type":"text"},{"key":"password","value":"Bandulan113","type":"text"},{"key":"phone","value":"08978654774","type":"text"}]},"url":"http://localhost:5000/api/users/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"188"},{"key":"ETag","value":"W/\"bc-ibL6KYYPxVziV5DNLrKiDiojEog\""},{"key":"Date","value":"Sat, 02 Mar 2024 04:02:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [],\n    \"message\": \"User created successfully\",\n    \"data\": [\n        {\n            \"userId\": \"29fbe29d-b4d1-4e86-a2d5-9c0976fb81e2\",\n            \"email\": \"danistmikwp@gmail.com\",\n            \"name\": \"Dani Kurniawan\",\n            \"phone\": \"08978654774\"\n        }\n    ]\n}"}],"_postman_id":"c911a241-b165-48f8-8bc6-5725c959e4eb"},{"name":"sendOtp","id":"c4005b61-9cde-4d6f-86a3-61b555138c78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone","value":"08123467889","type":"text"}]},"url":"http://localhost:5000/api/otp/send","description":"<p>otp bisa untuk channel email / phone , ini contoh untuk phone saja</p>\n<p>code : number 6 digit</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","otp","send"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ff72b901-cbd6-4275-927d-7ef733297590","name":"sendOtp","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone","value":"08123467889","type":"text"}]},"url":"http://localhost:5000/api/otp/send"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"ETag","value":"W/\"66-G7VnhzPrxs2Omt9rOZyB1IuqTSA\""},{"key":"Date","value":"Sat, 02 Mar 2024 01:55:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [],\n    \"message\": \"Otp created successfully\",\n    \"data\": [\n        {\n            \"phone\": \"08123467889\",\n            \"otpCode\": \"852916\"\n        }\n    ]\n}"}],"_postman_id":"c4005b61-9cde-4d6f-86a3-61b555138c78"},{"name":"verifyOtp","id":"acc1480f-6585-4bae-aeb8-6a65519a7f14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone","value":"08123467889","type":"text"},{"key":"code","value":"852916","type":"text"}]},"url":"http://localhost:5000/api/otp/verify","urlObject":{"protocol":"http","port":"5000","path":["api","otp","verify"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"edca8b2d-b5e3-49ac-b5dd-424d21d506a8","name":"verifyOtp","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone","value":"08123467889","type":"text"},{"key":"code","value":"852916","type":"text"}]},"url":"http://localhost:5000/api/otp/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"96"},{"key":"ETag","value":"W/\"60-YBjdxBiMS602s3W8p5a8sRz5BfM\""},{"key":"Date","value":"Sat, 02 Mar 2024 01:55:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [],\n    \"message\": \"Verification successful\",\n    \"data\": [\n        {\n            \"phone\": \"08123467889\",\n            \"code\": 852916\n        }\n    ]\n}"}],"_postman_id":"acc1480f-6585-4bae-aeb8-6a65519a7f14"},{"name":"login","id":"fb0c5ff1-19e6-4bf7-ab12-afe38b692299","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"danistmikwp@gmail.com","type":"text"},{"key":"password","value":"Bandulan113","type":"text"}]},"url":"http://localhost:5000/api/users/login","description":"<p>option : email or phone</p>\n<p>required : password</p>\n<p>jwt muncul dijson nya , bisa diolah didb sesuai kebutuhan(next)</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"148cd8d3-252b-46bf-8191-de0363106064","name":"login","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"danistmikwp@gmail.com","type":"text"},{"key":"password","value":"Bandulan113","type":"text"}]},"url":"http://localhost:5000/api/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"388"},{"key":"ETag","value":"W/\"184-YePNlLGOX4P97a2SXjcrNuHlc7s\""},{"key":"Date","value":"Sat, 02 Mar 2024 04:03:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [],\n    \"message\": \"Login successful\",\n    \"data\": [\n        {\n            \"userId\": \"29fbe29d-b4d1-4e86-a2d5-9c0976fb81e2\",\n            \"email\": \"danistmikwp@gmail.com\",\n            \"name\": \"Dani Kurniawan\",\n            \"phone\": \"08978654774\"\n        },\n        {\n            \"jwt Token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIyOWZiZTI5ZC1iNGQxLTRlODYtYTJkNS05YzA5NzZmYjgxZTIiLCJpYXQiOjE3MDkzNTIxOTksImV4cCI6MTcwOTM1NTc5OX0.fAilZcJre-GeGrK769AukL4iuIuZXKCOleFluNvsGMk\"\n        }\n    ]\n}"}],"_postman_id":"fb0c5ff1-19e6-4bf7-ab12-afe38b692299"},{"name":"updatePhoto","id":"f7366a12-bcf6-445d-9877-8fda1bf9d725","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"postman-cloud:///1eed5d82-04fd-48a0-a807-837633029e9e"}]},"url":"http://localhost:5000/api/users/update-photo/29fbe29d-b4d1-4e86-a2d5-9c0976fb81e2","description":"<ul>\n<li><p>endpoint untuk update photo profile user yang ada ditable users</p>\n</li>\n<li><p>gambar ditangani multer dan disimpan di folder /uploads pd local project pathnya saja yang masuk db</p>\n</li>\n<li><p>endpoint dilindingi jwt artinya perlu token untuk mengakses endpoint ini</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","update-photo","29fbe29d-b4d1-4e86-a2d5-9c0976fb81e2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"83b4a65b-5a84-4eb1-b1ed-694fcb217d97","name":"updatePhoto","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"postman-cloud:///1eed5d82-04fd-48a0-a807-837633029e9e"}]},"url":"http://localhost:5000/api/users/update-photo/29fbe29d-b4d1-4e86-a2d5-9c0976fb81e2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"109"},{"key":"ETag","value":"W/\"6d-vds5o1N6O46BYcgC5Kq+hIdq9i8\""},{"key":"Date","value":"Sat, 02 Mar 2024 04:20:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [],\n    \"message\": \"Photo updated successfully\",\n    \"data\": [\n        {\n            \"imagePath\": \"uploads\\\\file-1709353228635.jpg\"\n        }\n    ]\n}"}],"_postman_id":"f7366a12-bcf6-445d-9877-8fda1bf9d725"},{"name":"http://192.168.0.1/goform/getQos?random=0.781498744831135&modules=localhost%2ConlineList%2CmacFilter%2CguestList%2CwifiBasicCfg%2CwifiRelay%2CwifiGuest%2CproductInfo","id":"e874f16c-84dc-415e-b613-99417015d69a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"*/*"},{"key":"Accept-Language","value":"en-US,en;q=0.9"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"bLanguage=en; ecos_pw=QmFuZHVsYW4xMTM=cvd:language=cn"},{"key":"Referer","value":"http://192.168.0.1/index.html"},{"key":"User-Agent","value":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"}],"url":"http://localhost:5000","description":"<p>Generated from cURL: curl '<a href=\"http://192.168.0.1/goform/getQos?random=0.781498744831135&amp;modules=localhost%2ConlineList%2CmacFilter%2CguestList%2CwifiBasicCfg%2CwifiRelay%2CwifiGuest%2CproductInfo\">http://192.168.0.1/goform/getQos?random=0.781498744831135&amp;modules=localhost%2ConlineList%2CmacFilter%2CguestList%2CwifiBasicCfg%2CwifiRelay%2CwifiGuest%2CproductInfo</a>' <br />  -H 'Accept: <em>/</em>' <br />  -H 'Accept-Language: en-US,en;q=0.9' <br />  -H 'Connection: keep-alive' <br />  -H 'Cookie: bLanguage=en; ecos_pw=QmFuZHVsYW4xMTM=cvd:language=cn' <br />  -H 'Referer: <a href=\"http://192.168.0.1/index.html\">http://192.168.0.1/index.html</a>' <br />  -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' <br />  --compressed <br />  --insecure</p>\n","urlObject":{"protocol":"http","port":"5000","host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e874f16c-84dc-415e-b613-99417015d69a"}]}