{"info":{"_postman_id":"da7ee061-e541-4a95-80f6-8382ec3f6efa","name":"saarthi-camps","description":"<html><head></head><body><p>URL = localhost:3000</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26894077","collectionId":"da7ee061-e541-4a95-80f6-8382ec3f6efa","publishedId":"2s9YRGyUup","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-29T21:53:38.000Z"},"item":[{"name":"token routes","item":[{"name":"renew access token","id":"8fe44a90-8c45-43f6-bd04-17b5307f3550","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/token/renew","description":"<p>access token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkWm14dFZHTTJZOGFuMGl5NlJFOG1rdVFhZHloY2ZKUFQ0SVNXQVhPV1ZCYnUvTjJBTGRnU0MiLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg2MTA3NjksImV4cCI6MTY5ODYxNDM2OX0.GigwQ1t2SG5jZyM3cTlxxh9ubQhaeWjN9DuOWy7a9hw</p>\n","urlObject":{"path":["token","renew"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"ccaa5be5-2ebb-4d69-95f1-4af06e6e3cd9","name":"pass:auth verified, token issued","originalRequest":{"method":"POST","header":[],"url":"{{URL}}/token/renew"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"ETag","value":"W/\"228-qbMxqi1EHLED/lNqM3x9cvEfdFw\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:31:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"new name for deo\",\n        \"email\": \"akashdeepkataria5@gmail.com\",\n        \"role\": \"dataEntryOperator\",\n        \"createdAt\": \"2023-10-29T20:03:04.437Z\",\n        \"updatedAt\": \"2023-10-29T20:25:16.880Z\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkWm14dFZHTTJZOGFuMGl5NlJFOG1rdVFhZHloY2ZKUFQ0SVNXQVhPV1ZCYnUvTjJBTGRnU0MiLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg2MTE0NjMsImV4cCI6MTY5ODYxNTA2M30.GI8hABu5jNFWhGwl1PZbhPKL0xbrLKsxuxcJaKklz2k\"\n}"}],"_postman_id":"8fe44a90-8c45-43f6-bd04-17b5307f3550"}],"id":"8dbd92ac-cfde-460e-8432-85ce7b321b7f","_postman_id":"8dbd92ac-cfde-460e-8432-85ce7b321b7f","description":""},{"name":"user routes","item":[{"name":"login user","id":"276ae3bc-53c7-418e-970c-9352b5810c16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"akashdeepkataria5@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user/login","urlObject":{"protocol":"http","port":"3000","path":["user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d4c6747a-0d1f-40e7-973e-698663b0a81e","name":"fail:empty form","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"ETag","value":"W/\"14f-PNCE9XCZ70EIxmU83Fefbao92Xo\""},{"key":"Date","value":"Sun, 29 Oct 2023 19:29:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"User with specified email address doesn't exist\",\n    \"stack\": \"Error: User with specified email address doesn't exist\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\user.controllers.js:27:15\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"\n}"},{"id":"3ce55b91-2718-42af-9ad6-266706b99a3b","name":"pass:admin login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"saarthi@admin.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoic2FhcnRoaUBhZG1pbi5jb20iLCJwYXNzd29yZCI6IiQyYiQwOCR1WTNnZ0o2Mm5uaUxWZS5aaC94aVZPTmxYWHdjcTZISC5uam0yaTNjWTc0ZVplZEFhby54bSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTY5ODYwOTE5NiwiZXhwIjoxNzAxMjAxMTk2fQ.i5TybM6VwvzQ_d_N4-_SzF5YJPVyeMCyOTkNIYHYQnw; Max-Age=2592000; Path=/; Expires=Tue, 28 Nov 2023 19:53:16 GMT; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"498"},{"key":"ETag","value":"W/\"1f2-LNwNxL74Jg8AoiSBZGK9xCB193o\""},{"key":"Date","value":"Sun, 29 Oct 2023 19:53:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"Akash Kataria\",\n        \"email\": \"saarthi@admin.com\",\n        \"role\": \"admin\",\n        \"createdAt\": \"2023-10-29T19:35:32.414Z\",\n        \"updatedAt\": \"2023-10-29T19:53:16.546Z\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoic2FhcnRoaUBhZG1pbi5jb20iLCJwYXNzd29yZCI6IiQyYiQwOCR1WTNnZ0o2Mm5uaUxWZS5aaC94aVZPTmxYWHdjcTZISC5uam0yaTNjWTc0ZVplZEFhby54bSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTY5ODYwOTE5NiwiZXhwIjoxNjk4NjEyNzk2fQ.spS4pMenAfM3wsuq79l-6obkEb9KbF_94ivtdumdWug\"\n}"},{"id":"d42ddc23-e381-4774-b23e-859223bc2941","name":"fail:wrong email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"saarthi@admin.gmail\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"ETag","value":"W/\"14f-7MASBUV3qSNssfn9RV5/FBIFTvo\""},{"key":"Date","value":"Sun, 29 Oct 2023 19:55:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"User with specified email address doesn't exist\",\n    \"stack\": \"Error: User with specified email address doesn't exist\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\user.controllers.js:30:15\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"\n}"},{"id":"e996ffd3-af6c-42c4-83be-4c1dfc1d2046","name":"fail:wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"saarthi@admin.com\",\r\n    \"password\": \"123457\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"ETag","value":"W/\"14f-7MASBUV3qSNssfn9RV5/FBIFTvo\""},{"key":"Date","value":"Sun, 29 Oct 2023 19:55:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"User with specified email address doesn't exist\",\n    \"stack\": \"Error: User with specified email address doesn't exist\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\user.controllers.js:30:15\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"\n}"},{"id":"b21c0710-0715-478d-ab44-8a04ea14b823","name":"pass:deo login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"akashdeepkataria5@gmail.com\",\r\n    \"password\": \"oBpTJo\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkWm14dFZHTTJZOGFuMGl5NlJFOG1rdVFhZHloY2ZKUFQ0SVNXQVhPV1ZCYnUvTjJBTGRnU0MiLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg2MTA3NjksImV4cCI6MTcwMTIwMjc2OX0.ncfugaaQG8s9xnG3je0DDIhriiM51tARRduoyO5s--E; Max-Age=2592000; Path=/; Expires=Tue, 28 Nov 2023 20:19:29 GMT; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"550"},{"key":"ETag","value":"W/\"226-NoRnqbdf5eOgwKJw8qtLDvh7AS4\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:19:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"amc1 first deo\",\n        \"email\": \"akashdeepkataria5@gmail.com\",\n        \"role\": \"dataEntryOperator\",\n        \"createdAt\": \"2023-10-29T20:03:04.437Z\",\n        \"updatedAt\": \"2023-10-29T20:19:29.727Z\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkWm14dFZHTTJZOGFuMGl5NlJFOG1rdVFhZHloY2ZKUFQ0SVNXQVhPV1ZCYnUvTjJBTGRnU0MiLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg2MTA3NjksImV4cCI6MTY5ODYxNDM2OX0.GigwQ1t2SG5jZyM3cTlxxh9ubQhaeWjN9DuOWy7a9hw\"\n}"},{"id":"6bd181e2-36a7-48dc-8ede-e4b1188531bf","name":"pass:deo login after password change","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"akashdeepkataria5@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkSmFzYVVVeUxaQ21WZEw3WU1wVlp0ZUMyby5pNUc5amx0TS9JZ2ZUS3VyT0VQalp3aXI3NEciLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg2MTkwNTksImV4cCI6MTcwMTIxMTA1OX0.qvEMptVx4jy2hcoUH3JtFScYziPkt9LCcvw9KwpAt8o; Max-Age=2592000; Path=/; Expires=Tue, 28 Nov 2023 22:37:39 GMT; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"ETag","value":"W/\"228-jSrFcVLz1BzKe6P/xHDbpwQXH+U\""},{"key":"Date","value":"Sun, 29 Oct 2023 22:37:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"new name for deo\",\n        \"email\": \"akashdeepkataria5@gmail.com\",\n        \"role\": \"dataEntryOperator\",\n        \"createdAt\": \"2023-10-29T20:03:04.437Z\",\n        \"updatedAt\": \"2023-10-29T22:37:39.474Z\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkSmFzYVVVeUxaQ21WZEw3WU1wVlp0ZUMyby5pNUc5amx0TS9JZ2ZUS3VyT0VQalp3aXI3NEciLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg2MTkwNTksImV4cCI6MTY5ODYyMjY1OX0.k7fxR-62a3bH3QBGJ8RhL0GfTDb1w9dk4qK5L6_ob4s\"\n}"},{"id":"ae335eb7-a1d3-41a6-882b-eab4e9cc3d19","name":"pass: deo login (2)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"akashdeepkataria5@gmail.com\",\r\n    \"password\": \"akash123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkdURmWVRoeFk3MHYwSXlsNXBDc3ladVZ3dkljd3FiQXI4Q3NBVzdrQjdvblgzclhybWt1emkiLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg4MTgwNDAsImV4cCI6MTcwMTQxMDA0MH0.K7W1S0dlOxWhIRnX-Jn9yo3dHW6dHLQlaUPj5LoSJ64; Max-Age=2592000; Path=/; Expires=Fri, 01 Dec 2023 05:54:00 GMT; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"ETag","value":"W/\"228-G08W6tBdv+//NtBqwaiBuJKYjdg\""},{"key":"Date","value":"Wed, 01 Nov 2023 05:54:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"new name for deo\",\n        \"email\": \"akashdeepkataria5@gmail.com\",\n        \"role\": \"dataEntryOperator\",\n        \"createdAt\": \"2023-10-29T20:03:04.437Z\",\n        \"updatedAt\": \"2023-11-01T05:54:00.884Z\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkdURmWVRoeFk3MHYwSXlsNXBDc3ladVZ3dkljd3FiQXI4Q3NBVzdrQjdvblgzclhybWt1emkiLCJyb2xlIjoiZGF0YUVudHJ5T3BlcmF0b3IiLCJpYXQiOjE2OTg4MTgwNDAsImV4cCI6MTY5ODgyMTY0MH0.hwQD_3_482Tn-XhzKSr7N0OfdzOT4SRGEBBsBxCNfLI\"\n}"},{"id":"94add56a-f0b6-4717-9ba3-7f3ccb2a388f","name":"pass:admin login (2)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"akataria_be21@thapar.edu\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoiYWthdGFyaWFfYmUyMUB0aGFwYXIuZWR1IiwicGFzc3dvcmQiOiIkMmIkMDgkazltVFdRQUhlVnh2b3FlZG81Um4xT0ZrUWJvRVZ1YnU3UnBlemVHckVGUy9OSlFZc3o1UmkiLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE2OTg4MTk4NTgsImV4cCI6MTcwMTQxMTg1OH0.Qu4MWF5CRMyRhBnp0TRoWoJMZ2pQgnJd4bWrlL-bOY0; Max-Age=2592000; Path=/; Expires=Fri, 01 Dec 2023 06:24:18 GMT; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"514"},{"key":"ETag","value":"W/\"202-w5UUHEuXyPfjMrnH1NUiUwg82+g\""},{"key":"Date","value":"Wed, 01 Nov 2023 06:24:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"Akash Kataria\",\n        \"email\": \"akataria_be21@thapar.edu\",\n        \"role\": \"admin\",\n        \"createdAt\": \"2023-10-29T19:35:32.414Z\",\n        \"updatedAt\": \"2023-11-01T06:24:18.404Z\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoiYWthdGFyaWFfYmUyMUB0aGFwYXIuZWR1IiwicGFzc3dvcmQiOiIkMmIkMDgkazltVFdRQUhlVnh2b3FlZG81Um4xT0ZrUWJvRVZ1YnU3UnBlemVHckVGUy9OSlFZc3o1UmkiLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE2OTg4MTk4NTgsImV4cCI6MTY5ODgyMzQ1OH0.57Th5ffDEizzE9ivQgUNvsiLTKj4ZU195PTcUz-FdQo\"\n}"}],"_postman_id":"276ae3bc-53c7-418e-970c-9352b5810c16"},{"name":"create-deo(by admin)","id":"364afb24-5e3d-427f-9b01-d7455d8a1d61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"testing queue system\",\r\n    \"email\": \"crankydirac9@deliveryotter.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/create-deo","description":"<p>access token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoic2FhcnRoaUBhZG1pbi5jb20iLCJwYXNzd29yZCI6IiQyYiQwOCR1WTNnZ0o2Mm5uaUxWZS5aaC94aVZPTmxYWHdjcTZISC5uam0yaTNjWTc0ZVplZEFhby54bSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTY5ODYwOTE5NiwiZXhwIjoxNjk4NjEyNzk2fQ.spS4pMenAfM3wsuq79l-6obkEb9KbF_94ivtdumdWug</p>\n","urlObject":{"path":["user","create-deo"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"306e648d-64fc-4d4c-9cdf-8a493920ca5d","name":"pass:deo created + email sent(temporary pwd)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"amc1 first deo\",\r\n    \"email\": \"akashdeepkataria5@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/create-deo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"168"},{"key":"ETag","value":"W/\"a8-3wMZwHfa1+RR+j5nB6z41Ve2Hr8\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:03:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"amc1 first deo\",\n    \"email\": \"akashdeepkataria5@gmail.com\",\n    \"role\": \"dataEntryOperator\",\n    \"createdAt\": \"2023-10-29T20:03:04.437Z\",\n    \"updatedAt\": \"2023-10-29T20:03:04.437Z\"\n}"},{"id":"53a52cc3-73c7-4b40-bae5-ac344d38b22b","name":"fail:invalid access token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"amc1 first deo\",\r\n    \"email\": \"akashdeepkataria5@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/create-deo"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1398"},{"key":"ETag","value":"W/\"576-z11yIjWVH9k/aL5My3jdS+csEeM\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:05:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"invalid signature\",\n    \"stack\": \"JsonWebTokenError: invalid signature\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\jsonwebtoken\\\\verify.js:171:19\\n    at getSecret (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\jsonwebtoken\\\\verify.js:97:14)\\n    at module.exports [as verify] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\jsonwebtoken\\\\verify.js:101:10)\\n    at validateAccessToken (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\security\\\\accessTokenUtils.js:11:25)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:13:29\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:144:13)\\n    at Route.dispatch (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:114:3)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\"\n}"},{"id":"15b42a39-85b0-4a2f-b5ad-8670381f5d4e","name":"fail:logged out(no cookie)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"amc1 first deo\",\r\n    \"email\": \"akashdeepkataria5@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/create-deo"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1432"},{"key":"ETag","value":"W/\"598-Z2HUKYjs88IW2zrEWkm1MwUdEyw\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:08:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:144:13)\\n    at Route.dispatch (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:114:3)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:284:15\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at Function.handle (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:175:3)\"\n}"}],"_postman_id":"364afb24-5e3d-427f-9b01-d7455d8a1d61"},{"name":"logout user","id":"11071004-cfea-40ca-be69-7e7afe455f62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"{{URL}}/user/logout","urlObject":{"path":["user","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"adcbd2c9-e916-4752-bb69-11798bbd9527","name":"pass:accesstoken verified + cookie removed","originalRequest":{"method":"POST","header":[],"url":"{{URL}}/user/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Set-Cookie","value":"refreshToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"145"},{"key":"ETag","value":"W/\"91-iA+luDQzWkFUBgordSreDFsYm/o\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:11:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Akash Kataria\",\n    \"email\": \"saarthi@admin.com\",\n    \"role\": \"admin\",\n    \"createdAt\": \"2023-10-29T19:35:32.414Z\",\n    \"updatedAt\": \"2023-10-29T20:11:55.743Z\"\n}"},{"id":"b4e02bf7-d267-4e54-bf8d-6954799cc901","name":"fail:client is not logged in","originalRequest":{"method":"POST","header":[],"url":"{{URL}}/user/logout"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1432"},{"key":"ETag","value":"W/\"598-Z2HUKYjs88IW2zrEWkm1MwUdEyw\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:12:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:144:13)\\n    at Route.dispatch (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:114:3)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:284:15\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at Function.handle (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:175:3)\"\n}"}],"_postman_id":"11071004-cfea-40ca-be69-7e7afe455f62"},{"name":"update password","id":"2d068c2b-d2b5-43b6-b283-a000c5beb6d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/update-password","urlObject":{"path":["user","update-password"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"c4cc4832-051e-4790-b41c-d68cb6a854d1","name":"pass:password update(eg:admin)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"pass123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/update-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"145"},{"key":"ETag","value":"W/\"91-P9uUQLvIkhyn9rk9lTva/ljltDc\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:16:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Akash Kataria\",\n    \"email\": \"saarthi@admin.com\",\n    \"role\": \"admin\",\n    \"createdAt\": \"2023-10-29T19:35:32.414Z\",\n    \"updatedAt\": \"2023-10-29T20:16:55.993Z\"\n}"}],"_postman_id":"2d068c2b-d2b5-43b6-b283-a000c5beb6d9"},{"name":"update user","id":"62fb9a76-86b1-4f11-836c-6fdfcab5fabf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"new name for deo\",\r\n    \"role\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/update","urlObject":{"path":["user","update"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"5f600dd3-f102-4953-9714-63175b0daa3c","name":"pass:updated deo name","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"new name for deo\",\r\n    \"role\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"170"},{"key":"ETag","value":"W/\"aa-O5lpAL71i8mrH1A2HUmnkY8dM+M\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:25:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"new name for deo\",\n    \"email\": \"akashdeepkataria5@gmail.com\",\n    \"role\": \"dataEntryOperator\",\n    \"createdAt\": \"2023-10-29T20:03:04.437Z\",\n    \"updatedAt\": \"2023-10-29T20:25:16.880Z\"\n}"}],"_postman_id":"62fb9a76-86b1-4f11-836c-6fdfcab5fabf"},{"name":"forgot password","id":"d5f6be7f-26f4-4e8f-ae7a-078bef43293f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"akataria_be21@thapar.edu\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/forgot-password","urlObject":{"path":["user","forgot-password"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"2d455df0-1c18-4a92-bd55-fcce52aba3f3","name":"fail:logged out(no access token)","originalRequest":{"method":"POST","header":[],"url":"{{URL}}/user/forgot-password"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1432"},{"key":"ETag","value":"W/\"598-Z2HUKYjs88IW2zrEWkm1MwUdEyw\""},{"key":"Date","value":"Sun, 29 Oct 2023 22:23:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:144:13)\\n    at Route.dispatch (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:114:3)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:284:15\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at Function.handle (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:175:3)\"\n}"},{"id":"189d4181-4db6-430b-a2b5-21ee36db0364","name":"pass:email sent with link to reset pwd one time","originalRequest":{"method":"POST","header":[],"url":"{{URL}}/user/forgot-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 29 Oct 2023 22:28:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d5f6be7f-26f4-4e8f-ae7a-078bef43293f"},{"name":"reset password","id":"76d8685b-ddde-4952-b453-7070490cce61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"newPassword\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/653eb404bbc0208b0b4e3052/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoiYWthdGFyaWFfYmUyMUB0aGFwYXIuZWR1IiwiaWF0IjoxNjk4ODE5NzQ1LCJleHAiOjE2OTg4MjAzNDV9.he7DYrUKuad6J8dGDrxS52b5iF0Rl0yx7LY7qIHMnGM","urlObject":{"path":["user","653eb404bbc0208b0b4e3052","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViNDA0YmJjMDIwOGIwYjRlMzA1MiIsImVtYWlsIjoiYWthdGFyaWFfYmUyMUB0aGFwYXIuZWR1IiwiaWF0IjoxNjk4ODE5NzQ1LCJleHAiOjE2OTg4MjAzNDV9.he7DYrUKuad6J8dGDrxS52b5iF0Rl0yx7LY7qIHMnGM"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"2dd551ac-2b3f-402d-98b2-e57d58ec1907","name":"fail:can't change password more than one time","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"newPassword\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/653eba784f0989de3b049832/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwiaWF0IjoxNjk4NjE4NDg3LCJleHAiOjE2OTg2MTkwODd9.y4BnN3-6SDnWCpUBPw9alCYaSMe4w5xMvxuCSoclRJ0"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"314"},{"key":"ETag","value":"W/\"13a-W4Ycc2oEgi9wMXhzBlO66GbouHs\""},{"key":"Date","value":"Sun, 29 Oct 2023 22:35:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"JsonWebTokenError: invalid signature\",\n    \"stack\": \"Error: JsonWebTokenError: invalid signature\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\user.controllers.js:119:15\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"\n}"},{"id":"59054907-d108-4fe7-8904-f2577c9653af","name":"pass:password changed","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"newPassword\": \"akash123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/653eba784f0989de3b049832/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1M2ViYTc4NGYwOTg5ZGUzYjA0OTgzMiIsImVtYWlsIjoiYWthc2hkZWVwa2F0YXJpYTVAZ21haWwuY29tIiwiaWF0IjoxNjk4NjE5MTI4LCJleHAiOjE2OTg2MTk3Mjh9.1GZ5qA1p3-UszleKnqQCAVHXMdsZwlJLcYItYODy9Fw"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-5y+HK1+FqBauPIsoNAsFjnPR9eI\""},{"key":"Date","value":"Sun, 29 Oct 2023 22:39:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Password reset successfully"}],"_postman_id":"76d8685b-ddde-4952-b453-7070490cce61"},{"name":"get user profile","id":"0de4bb59-5bae-450d-b74f-24b656756a52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/user/profile","urlObject":{"path":["user","profile"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"bcc4d916-4683-4c80-8aae-7af06f59df1f","name":"1.get profile","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/user/profile"},"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":"92"},{"key":"ETag","value":"W/\"5c-RF8B/Bo3KRhLSexl7ztTBIW/Fr8\""},{"key":"Date","value":"Tue, 21 Nov 2023 19:17:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"new name for deo\",\n    \"email\": \"akashdeepkataria5@gmail.com\",\n    \"role\": \"dataEntryOperator\"\n}"}],"_postman_id":"0de4bb59-5bae-450d-b74f-24b656756a52"},{"name":"create-doctor(by admin)","id":"3ee9f8da-9721-4455-8772-25d337fa3be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"doctor2\",\r\n    \"email\": \"iamakashkataria18@gmail.com\",\r\n    \"specialization\": \"dentist\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/create-doctor","urlObject":{"path":["user","create-doctor"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ee9f8da-9721-4455-8772-25d337fa3be9"},{"name":"get metrics","id":"572fa15a-73a4-4510-a118-9821704e7cc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/metrics","urlObject":{"protocol":"http","port":"3000","path":["metrics"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"572fa15a-73a4-4510-a118-9821704e7cc2"}],"id":"7cb6a656-d50b-4260-aedd-1891bd809905","_postman_id":"7cb6a656-d50b-4260-aedd-1891bd809905","description":""},{"name":"refugee routes","item":[{"name":"add refugee","id":"954420c6-75c9-43b4-b7cf-e47cb2330533","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"new camp","type":"text"},{"key":"dob","value":"2000-01-01","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","src":"/C:/Users/akash/OneDrive/Desktop/cat.png"},{"key":"gender","value":"male","type":"text"}]},"url":"{{URL}}/refugee/","urlObject":{"path":["refugee",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"d38531fd-2ced-4c98-a5ae-770c6e3b55a8","name":"fail:name,gender,dob required(but deo auth verified)","originalRequest":{"method":"POST","header":[],"url":"{{URL}}/refugee/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1476"},{"key":"ETag","value":"W/\"5c4-iYMAp5RDFqbOtfGmdCc7N5yuDak\""},{"key":"Date","value":"Sun, 29 Oct 2023 20:46:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Name, Gender and Date of Birth are required fields\",\n    \"stack\": \"Error: Name, Gender and Date of Birth are required fields\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\refugee.controllers.js:9:15\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:144:13)\\n    at Route.dispatch (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:114:3)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:284:15\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at Function.handle (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:175:3)\"\n}"},{"id":"e457faa3-9190-4cb6-bcde-c40a514ce07b","name":"pass: first refugee added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"akash refugee\",\r\n    \"gender\": \"male\",\r\n    \"dob\": \"2003-7-14\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"171"},{"key":"ETag","value":"W/\"ab-1wtE6FtQldJTeshmkD9l+2U40kI\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:07:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"akash refugee\",\n    \"gender\": \"male\",\n    \"dob\": \"2003-07-13T18:30:00.000Z\",\n    \"refugeeId\": \"amc11\",\n    \"createdAt\": \"2023-10-29T21:07:00.489Z\",\n    \"updatedAt\": \"2023-10-29T21:07:00.489Z\"\n}"},{"id":"76442cde-a373-417f-b0e1-bd723325a7cc","name":"pass: second refugee added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"arvinder refugee\",\r\n    \"gender\": \"male\",\r\n    \"dob\": \"2003-7-14\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"174"},{"key":"ETag","value":"W/\"ae-iip0pNqTsQtWa6ChOsCjasyOmIg\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:07:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"arvinder refugee\",\n    \"gender\": \"male\",\n    \"dob\": \"2003-07-13T18:30:00.000Z\",\n    \"refugeeId\": \"amc12\",\n    \"createdAt\": \"2023-10-29T21:07:27.983Z\",\n    \"updatedAt\": \"2023-10-29T21:07:27.983Z\"\n}"},{"id":"55ca1afb-3710-451a-a5c3-b5a6383d0967","name":"pass: third refugee","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"harsh refugee\",\r\n    \"gender\": \"male\",\r\n    \"dob\": \"2003-7-14\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"171"},{"key":"ETag","value":"W/\"ab-ybQcdEtL6U2for/cLL4FZTaKaYg\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:07:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"harsh refugee\",\n    \"gender\": \"male\",\n    \"dob\": \"2003-07-13T18:30:00.000Z\",\n    \"refugeeId\": \"amc13\",\n    \"createdAt\": \"2023-10-29T21:07:55.730Z\",\n    \"updatedAt\": \"2023-10-29T21:07:55.730Z\"\n}"},{"id":"8f59a8c1-40ef-4796-9722-35e1415910c3","name":"pass: fourth refugee","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"banga refugee\",\r\n    \"gender\": \"male\",\r\n    \"dob\": \"2003-7-14\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"171"},{"key":"ETag","value":"W/\"ab-8awbp5KcEiRHgvSRTTSJ5fTjSIQ\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:08:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"banga refugee\",\n    \"gender\": \"male\",\n    \"dob\": \"2003-07-13T18:30:00.000Z\",\n    \"refugeeId\": \"amc14\",\n    \"createdAt\": \"2023-10-29T21:08:24.263Z\",\n    \"updatedAt\": \"2023-10-29T21:08:24.263Z\"\n}"},{"id":"9a285eb0-4ec6-4e03-b145-455565114ac8","name":"pass: refugee upload with image amc111","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"image upload testing","type":"text"},{"key":"gender","value":"none","type":"text"},{"key":"dob","value":"2000-01-01","type":"text"},{"key":"image","type":"file","src":"/C:/Users/akash/OneDrive/Desktop/cat.png"}],"options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"179"},{"key":"ETag","value":"W/\"b3-a+xmD0qc1EtaMfA3Z70p1JDc9qk\""},{"key":"Date","value":"Wed, 01 Nov 2023 05:54:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"image upload testing\",\n    \"gender\": \"none\",\n    \"dob\": \"2000-01-01T00:00:00.000Z\",\n    \"refugeeId\": \"amc111\",\n    \"createdAt\": \"2023-11-01T05:54:56.676Z\",\n    \"updatedAt\": \"2023-11-01T05:54:56.676Z\"\n}"}],"_postman_id":"954420c6-75c9-43b4-b7cf-e47cb2330533"},{"name":"get a refugee","id":"2b2e9f39-d97c-4521-b1d2-25c5612c1aad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refugeeId\": \"amc127\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/amc127","urlObject":{"path":["refugee","amc127"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"a9c2733f-6915-4928-b6bb-bccc34bc3983","name":"fail:deo logged out","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/refugee/acm11"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1409"},{"key":"ETag","value":"W/\"581-p6kCRaAeMobKbH4Xbx7n9/WkxoM\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:10:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:286:9\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:31:51\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\"\n}"},{"id":"663f2b51-b138-4dac-bf19-f81f33e05505","name":"fail:token expired(logged after one hour because token was not renewed)","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/refugee/acm11"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1369"},{"key":"ETag","value":"W/\"559-JUWuMumlLtqhedcmy6+Ec9XR6x4\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:22:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"jwt expired\",\n    \"stack\": \"TokenExpiredError: jwt expired\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\jsonwebtoken\\\\verify.js:190:21\\n    at getSecret (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\jsonwebtoken\\\\verify.js:97:14)\\n    at module.exports [as verify] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\jsonwebtoken\\\\verify.js:101:10)\\n    at validateAccessToken (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\security\\\\accessTokenUtils.js:11:25)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:13:29\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:286:9\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\"\n}"},{"id":"dc1a4b1d-31e1-4269-a1ac-77ab48b23eae","name":"pass:valid refugeeId","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refugeeId\": \"amc11\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/amc11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"171"},{"key":"ETag","value":"W/\"ab-1wtE6FtQldJTeshmkD9l+2U40kI\""},{"key":"Date","value":"Mon, 30 Oct 2023 05:50:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"akash refugee\",\n    \"gender\": \"male\",\n    \"dob\": \"2003-07-13T18:30:00.000Z\",\n    \"refugeeId\": \"amc11\",\n    \"createdAt\": \"2023-10-29T21:07:00.489Z\",\n    \"updatedAt\": \"2023-10-29T21:07:00.489Z\"\n}"},{"id":"51d68312-eaf5-46ac-904d-9dfce12bc930","name":"fail:invalid refugee id","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refugeeId\": \"amc17\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/amc17"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"312"},{"key":"ETag","value":"W/\"138-bG1i1SJs4hgxcl1nh50f+wRtypM\""},{"key":"Date","value":"Mon, 30 Oct 2023 05:52:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"No refugee found with specified id\",\n    \"stack\": \"Error: No refugee found with specified id\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\refugee.controllers.js:38:15\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"\n}"}],"_postman_id":"2b2e9f39-d97c-4521-b1d2-25c5612c1aad"},{"name":"get all refugees","id":"0ef2885a-6aa7-42b2-92ba-ee8157210c4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/refugee/refugees?dob=2023-11-03","urlObject":{"path":["refugee","refugees"],"host":["{{URL}}"],"query":[{"key":"dob","value":"2023-11-03"}],"variable":[]}},"response":[{"id":"24922762-571e-4b50-b81d-87330053eb6c","name":"pass:all refugees","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/refugee/refugees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"855"},{"key":"ETag","value":"W/\"357-KiTYeYUEMcmN/OEQlO+c/aQ2eYg\""},{"key":"Date","value":"Sun, 29 Oct 2023 21:40:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"akash refugee\",\n        \"gender\": \"male\",\n        \"dob\": \"2003-07-13T18:30:00.000Z\",\n        \"refugeeId\": \"amc11\",\n        \"createdAt\": \"2023-10-29T21:07:00.489Z\",\n        \"updatedAt\": \"2023-10-29T21:07:00.489Z\"\n    },\n    {\n        \"name\": \"arvinder refugee\",\n        \"gender\": \"male\",\n        \"dob\": \"2003-07-13T18:30:00.000Z\",\n        \"refugeeId\": \"amc12\",\n        \"createdAt\": \"2023-10-29T21:07:27.983Z\",\n        \"updatedAt\": \"2023-10-29T21:07:27.983Z\"\n    },\n    {\n        \"name\": \"harsh refugee\",\n        \"gender\": \"male\",\n        \"dob\": \"2003-07-13T18:30:00.000Z\",\n        \"refugeeId\": \"amc13\",\n        \"createdAt\": \"2023-10-29T21:07:55.730Z\",\n        \"updatedAt\": \"2023-10-29T21:07:55.730Z\"\n    },\n    {\n        \"name\": \"banga refugee\",\n        \"gender\": \"male\",\n        \"dob\": \"2003-07-13T18:30:00.000Z\",\n        \"refugeeId\": \"amc14\",\n        \"createdAt\": \"2023-10-29T21:08:24.263Z\",\n        \"updatedAt\": \"2023-10-29T21:08:24.263Z\"\n    },\n    {\n        \"name\": \"test\",\n        \"gender\": \"male\",\n        \"dob\": \"2003-07-13T18:30:00.000Z\",\n        \"refugeeId\": \"amc15\",\n        \"createdAt\": \"2023-10-29T21:38:38.973Z\",\n        \"updatedAt\": \"2023-10-29T21:38:38.973Z\"\n    }\n]"},{"id":"384462b7-560c-4ce5-85aa-bc30a84d53cb","name":"search functions","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/refugee/refugees?gender=male&sort=name&fields=name,refugeeId&page=5","host":["{{URL}}"],"path":["refugee","refugees"],"query":[{"key":"gender","value":"male"},{"key":"sort","value":"name"},{"key":"fields","value":"name,refugeeId"},{"key":"page","value":"5"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"300"},{"key":"ETag","value":"W/\"12c-ZR+VAMoeuvL0+Kh3n+dGgntxK/c\""},{"key":"Date","value":"Sat, 04 Nov 2023 10:45:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"This page does not exist\",\n    \"stack\": \"Error: This page does not exist\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\github\\\\Saarthi-Camps\\\\api\\\\controllers\\\\refugee.controllers.js:88:41\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"\n}"},{"id":"ef6dd10e-a1f7-4296-b076-3f4bc31ee3be","name":"search filter(date)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/refugee/refugees?dob=2023-11-03","host":["{{URL}}"],"path":["refugee","refugees"],"query":[{"key":"dob","value":"2023-11-03"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"171"},{"key":"ETag","value":"W/\"ab-OqDL6tru9+AppE3gqM5zQA752Vg\""},{"key":"Date","value":"Sat, 04 Nov 2023 11:22:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Harshpreet\",\n        \"gender\": \"male\",\n        \"dob\": \"2023-11-03T00:00:00.000Z\",\n        \"refugeeId\": \"amc116\",\n        \"createdAt\": \"2023-11-04T10:00:07.466Z\",\n        \"updatedAt\": \"2023-11-04T10:00:07.466Z\"\n    }\n]"}],"_postman_id":"0ef2885a-6aa7-42b2-92ba-ee8157210c4b"},{"name":"update refugee details","id":"44aeb211-f9f5-4924-88d9-f6f0b62831f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refugeeId\": \"amc11\",\r\n    \"name\": \"new name\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/amc11","urlObject":{"path":["refugee","amc11"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"9601c436-17f2-4bce-b4c9-35f6d2e66755","name":"pass:amc11 updated","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refugeeId\": \"amc11\",\r\n    \"name\": \"new name\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/amc11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"166"},{"key":"ETag","value":"W/\"a6-GcoSRamYn5FLE5t+6nROx9jO844\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:01:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"new name\",\n    \"gender\": \"male\",\n    \"dob\": \"2003-07-13T18:30:00.000Z\",\n    \"refugeeId\": \"amc11\",\n    \"createdAt\": \"2023-10-29T21:07:00.489Z\",\n    \"updatedAt\": \"2023-10-30T06:01:05.767Z\"\n}"}],"_postman_id":"44aeb211-f9f5-4924-88d9-f6f0b62831f1"},{"name":"get image of refugee","id":"1e402029-538d-4bfe-9e14-44ee046331e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refugeeId\": \"amc111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/refugee/image/amc114","urlObject":{"path":["refugee","image","amc114"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e402029-538d-4bfe-9e14-44ee046331e7"}],"id":"5e88a236-6909-415d-9d55-27b57c083b9f","_postman_id":"5e88a236-6909-415d-9d55-27b57c083b9f","description":""},{"name":"order routes","item":[{"name":"create an order","id":"837e3255-980e-4f31-80f9-c408f4450e4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"medicineName\": \"monitoring tesing\",\r\n    \"refugeeId\": \"AM48\",\r\n    \"medicineQuantity\": 2,\r\n    \"medicineUrgency\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/order/amc12","urlObject":{"path":["order","amc12"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"ed2b0d92-7db0-4f05-a125-47d953ff5d74","name":"fail:medicineName not provided","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/order/amc11"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1431"},{"key":"ETag","value":"W/\"597-o18iLESwxL1NDt9fXXuq+VYJ+4w\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:11:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Medicine name is a required field\",\n    \"stack\": \"Error: Medicine name is a required field\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\controllers\\\\order.controllers.js:9:15\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:144:13)\\n    at Route.dispatch (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\route.js:114:3)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:284:15\\n    at param (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:365:14)\\n    at param (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:376:14)\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:421:3)\"\n}"},{"id":"a9999810-1ef0-47ed-bd42-1a8136e0089a","name":"pass:first medicine ordered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"medicineName\": \"disprin\",\r\n    \"refugeeId\": \"amc11\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/order/amc11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"135"},{"key":"ETag","value":"W/\"87-ourv8JZ3ZD46k6BMRZKOdu4NI6U\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:15:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"medicineName\": \"disprin\",\n    \"medicineQuantity\": 1,\n    \"medicineUrgency\": \"normal\",\n    \"refugeeId\": \"amc11\",\n    \"orderId\": \"1\",\n    \"orderStatus\": \"PROCESSING\"\n}"},{"id":"b95f1648-af41-4d72-9dcb-dc29fdc99e11","name":"pass:second medicine ordered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"medicineName\": \"paracetamol\",\r\n    \"refugeeId\": \"amc12\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/order/amc12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"ETag","value":"W/\"8b-dl3w32O25qnHi6ZfJA82rIraANk\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:18:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"medicineName\": \"paracetamol\",\n    \"medicineQuantity\": 1,\n    \"medicineUrgency\": \"normal\",\n    \"refugeeId\": \"amc12\",\n    \"orderId\": \"2\",\n    \"orderStatus\": \"PROCESSING\"\n}"}],"_postman_id":"837e3255-980e-4f31-80f9-c408f4450e4e"},{"name":"get all orders","id":"f15415cd-4a0f-4f61-a874-064bd77a530f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/order/orders?sort=medicineName,medicineQuantity","urlObject":{"path":["order","orders"],"host":["{{URL}}"],"query":[{"key":"sort","value":"medicineName,medicineQuantity"}],"variable":[]}},"response":[{"id":"b2e432c7-61b1-4ddf-a945-671cb5034059","name":"fail:unauthenticated","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/order/orders"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1409"},{"key":"ETag","value":"W/\"581-p6kCRaAeMobKbH4Xbx7n9/WkxoM\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:20:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:286:9\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:31:51\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\"\n}"},{"id":"511097d7-4e7d-44b9-b872-2822801883a1","name":"pass:all orders response","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/order/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"277"},{"key":"ETag","value":"W/\"115-MTraxvoh9g1fLpg7Sx0PC32CvT8\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:25:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"disprin\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": \"normal\",\n        \"refugeeId\": \"amc11\",\n        \"orderId\": \"1\",\n        \"orderStatus\": \"PROCESSING\"\n    },\n    {\n        \"medicineName\": \"paracetamol\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": \"normal\",\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"2\",\n        \"orderStatus\": \"PROCESSING\"\n    }\n]"},{"id":"4898fc9d-0945-484c-92f9-a1a306a7b2b2","name":"pass: search 1","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/order/orders?medicineName=paracetamol","host":["{{URL}}"],"path":["order","orders"],"query":[{"key":"medicineName","value":"paracetamol"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"114"},{"key":"ETag","value":"W/\"72-65kcPP2ox8JabWnVjklktQvXojc\""},{"key":"Date","value":"Sat, 04 Nov 2023 10:48:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"paracetamol\",\n        \"medicineQuantity\": 1,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"2\",\n        \"orderStatus\": \"PROCESSING\"\n    }\n]"},{"id":"c19bbab5-45eb-4099-bce9-2ed8c2f8f642","name":"pass:search 2","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/order/orders?fields=medicineName,medicineQuantity","host":["{{URL}}"],"path":["order","orders"],"query":[{"key":"fields","value":"medicineName,medicineQuantity"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"ETag","value":"W/\"c8-HQs2ulLFHANPuw9nBmNuict9tx8\""},{"key":"Date","value":"Sat, 04 Nov 2023 11:09:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"disprin\",\n        \"medicineQuantity\": 1\n    },\n    {\n        \"medicineName\": \"paracetamol\",\n        \"medicineQuantity\": 1\n    },\n    {\n        \"medicineName\": \"sar dard\",\n        \"medicineQuantity\": 2\n    },\n    {\n        \"medicineName\": \"pair dard\",\n        \"medicineQuantity\": 2\n    }\n]"},{"id":"3734ded6-9f63-467f-a55b-6b621221a84b","name":"pass: search(filter)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/order/orders?refugeeId=amc12","host":["{{URL}}"],"path":["order","orders"],"query":[{"key":"refugeeId","value":"amc12"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"395"},{"key":"ETag","value":"W/\"18b-5dcYQly7S72PprZDUArd2dqpur8\""},{"key":"Date","value":"Sat, 04 Nov 2023 11:10:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"paracetamol\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": 2,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"2\",\n        \"orderStatus\": \"PROCESSING\"\n    },\n    {\n        \"medicineName\": \"sar dard\",\n        \"medicineQuantity\": 2,\n        \"medicineUrgency\": 1,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"3\",\n        \"orderStatus\": \"PROCESSING\"\n    },\n    {\n        \"medicineName\": \"pair dard\",\n        \"medicineQuantity\": 2,\n        \"medicineUrgency\": 1,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"4\",\n        \"orderStatus\": \"PROCESSING\"\n    }\n]"},{"id":"54e434f7-bae8-481a-885f-2f922596ee05","name":"pass:search(sort)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/order/orders?sort=medicineName,medicineQuantity","host":["{{URL}}"],"path":["order","orders"],"query":[{"key":"sort","value":"medicineName,medicineQuantity"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"524"},{"key":"ETag","value":"W/\"20c-7W0ibGDTwqKdJu7X2VYgiNY6Pu0\""},{"key":"Date","value":"Sat, 04 Nov 2023 11:10:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"disprin\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": 0,\n        \"refugeeId\": \"amc11\",\n        \"orderId\": \"1\",\n        \"orderStatus\": \"PROCESSING\"\n    },\n    {\n        \"medicineName\": \"pair dard\",\n        \"medicineQuantity\": 2,\n        \"medicineUrgency\": 1,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"4\",\n        \"orderStatus\": \"PROCESSING\"\n    },\n    {\n        \"medicineName\": \"paracetamol\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": 2,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"2\",\n        \"orderStatus\": \"PROCESSING\"\n    },\n    {\n        \"medicineName\": \"sar dard\",\n        \"medicineQuantity\": 2,\n        \"medicineUrgency\": 1,\n        \"refugeeId\": \"amc12\",\n        \"orderId\": \"3\",\n        \"orderStatus\": \"PROCESSING\"\n    }\n]"}],"_postman_id":"f15415cd-4a0f-4f61-a874-064bd77a530f"},{"name":"get all orders of a refugee","id":"cca40f3f-900d-4468-ba10-4ac4290b4fe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/order/refugee/amc127","urlObject":{"path":["order","refugee","amc127"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"b9cedba2-b739-42eb-acc5-d58579e65b59","name":"fail:unauthenticated","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/order/refugee/amc11"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1409"},{"key":"ETag","value":"W/\"581-p6kCRaAeMobKbH4Xbx7n9/WkxoM\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:24:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:286:9\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:31:51\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\"\n}"},{"id":"b38f5093-6700-4e3f-8ee9-2a0db559a0d6","name":"pass:valid response","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/order/refugee/amc11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"ETag","value":"W/\"89-TyQQ46RRxPQjzlD8XhbakUKqN2E\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:27:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"disprin\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": \"normal\",\n        \"refugeeId\": \"amc11\",\n        \"orderId\": \"1\",\n        \"orderStatus\": \"PROCESSING\"\n    }\n]"}],"_postman_id":"cca40f3f-900d-4468-ba10-4ac4290b4fe1"},{"name":"get order with order id","id":"5f39dff7-c0dd-4598-84cd-f77a120b5bb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/order/1","urlObject":{"path":["order","1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"65765209-2ed7-4acd-b102-2b28ed42616b","name":"fail:unauthenticated","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/order/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1409"},{"key":"ETag","value":"W/\"581-p6kCRaAeMobKbH4Xbx7n9/WkxoM\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:27:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Client is currently logged out\",\n    \"stack\": \"Error: Client is currently logged out\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:11:19\\n    at asyncUtilWrap (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express-async-handler\\\\index.js:3:20)\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:286:9\\n    at Function.process_params (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:346:12)\\n    at next (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:280:10)\\n    at E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\api\\\\middlewares\\\\authentication.js:31:51\\n    at Layer.handle [as handle_request] (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\layer.js:95:5)\\n    at trim_prefix (E:\\\\College Subjects\\\\Semester-5\\\\backend\\\\Saarthi-Camps\\\\node_modules\\\\express\\\\lib\\\\router\\\\index.js:328:13)\"\n}"},{"id":"c1330274-4f89-4fc6-a0e5-5d6f7ef363ec","name":"pass:orderid =1","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/order/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"ETag","value":"W/\"89-TyQQ46RRxPQjzlD8XhbakUKqN2E\""},{"key":"Date","value":"Mon, 30 Oct 2023 06:28:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"medicineName\": \"disprin\",\n        \"medicineQuantity\": 1,\n        \"medicineUrgency\": \"normal\",\n        \"refugeeId\": \"amc11\",\n        \"orderId\": \"1\",\n        \"orderStatus\": \"PROCESSING\"\n    }\n]"}],"_postman_id":"5f39dff7-c0dd-4598-84cd-f77a120b5bb8"}],"id":"61f36030-2b55-4cf5-8a9d-7bb3fac14ea5","_postman_id":"61f36030-2b55-4cf5-8a9d-7bb3fac14ea5","description":""},{"name":"consultancy routes","item":[{"name":"post consultancy","id":"4708aee8-c88d-44ea-836b-257da44a98cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"service\": \"dentist\",\r\n    \"refugeeId\": \"AM46\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/consultancy/AM44","urlObject":{"path":["consultancy","AM44"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"e39661b5-30df-4323-afbb-13e15392dbc5","name":"1.[pass] post consultancy","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"service\": \"dentist\",\r\n    \"refugeeId\": \"AM44\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/consultancy/AM44"},"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":"198"},{"key":"ETag","value":"W/\"c6-P5B1NCR4x+ByF6JOwJGCBsmYtQ8\""},{"key":"Date","value":"Thu, 23 Nov 2023 18:32:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"refugeeId\": \"AM44\",\n    \"service\": \"dentist\",\n    \"status\": \"Pending\",\n    \"consultancyId\": \"1\",\n    \"_id\": \"655f9ab9de98b6ace8775848\",\n    \"createdAt\": \"2023-11-23T18:32:25.975Z\",\n    \"updatedAt\": \"2023-11-23T18:32:25.975Z\",\n    \"__v\": 0\n}"}],"_postman_id":"4708aee8-c88d-44ea-836b-257da44a98cd"}],"id":"592bc997-f5c0-4497-98ed-db807999e9ff","_postman_id":"592bc997-f5c0-4497-98ed-db807999e9ff","description":""}]}