{"info":{"_postman_id":"2c3eb618-01fd-4409-9f3b-f90bc342be27","name":"Schedu","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14200523","collectionId":"2c3eb618-01fd-4409-9f3b-f90bc342be27","publishedId":"UVC3j81n","public":true,"customColor":{"top-bar":"001e6a","right-sidebar":"303030","highlight":"ffaa54"},"publishDate":"2021-11-06T08:30:37.000Z"},"item":[{"name":"Appointment","item":[{"name":"My Appointments","id":"35b9fb85-0edf-429b-ab65-0086234ea729","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"a0de6189-46fb-48a2-b3b1-d4c20917b67c","type":"text"},{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"}],"url":"localhost:3000/appointment","urlObject":{"port":"3000","path":["appointment"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3a12bb3e-107a-4629-8b04-c19534549431","name":"My Appointments","originalRequest":{"method":"GET","header":[{"key":"Schedu-Token","value":"<user authentication token>","type":"text"}],"url":"localhost:3000/appointment/6189ea797b52117c02879274"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"appointments\": [\n        {\n            \"_id\": \"618bb5c26fef719fa830e82c\",\n            \"subject\": \"Test Meeting\",\n            \"status\": \"ongoing\",\n            \"sender\": {\n                \"userId\": \"6189ea797b52117c02879274\",\n                \"firstName\": \"นายทัสนัย\",\n                \"lastName\": \"ศรีสวัสดิ์\"\n            },\n            \"participants\": [\n                {\n                    \"userId\": \"618b4cc8a996fac981059a69\",\n                    \"main\": true,\n                    \"confirmed\": false,\n                    \"_id\": \"618bb5c26fef719fa830e82d\",\n                    \"firstName\": \"TASANAI\",\n                    \"lastName\": \"SRISAWAT\"\n                },\n                {\n                    \"userId\": \"618b4d47a996fac981059a6f\",\n                    \"main\": false,\n                    \"confirmed\": false,\n                    \"_id\": \"618bb5c26fef719fa830e82e\",\n                    \"firstName\": \"Tasanai\",\n                    \"lastName\": \"Srisawat\"\n                }\n            ],\n            \"startAt\": \"2021-11-10T02:00:00.000Z\",\n            \"endAt\": \"2021-11-10T02:15:00.000Z\",\n            \"commMethod\": \"face\",\n            \"note\": \"ABC123!\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"618bc3c8cfce301762954e60\",\n            \"subject\": \"Potato Meeting\",\n            \"status\": \"pending\",\n            \"sender\": {\n                \"userId\": \"6189ea797b52117c02879274\",\n                \"firstName\": \"นายทัสนัย\",\n                \"lastName\": \"ศรีสวัสดิ์\"\n            },\n            \"participants\": [\n                {\n                    \"userId\": \"618b4cc8a996fac981059a69\",\n                    \"main\": true,\n                    \"confirmed\": false,\n                    \"_id\": \"618bc3c8cfce301762954e61\",\n                    \"firstName\": \"TASANAI\",\n                    \"lastName\": \"SRISAWAT\"\n                },\n                {\n                    \"userId\": \"618b4d47a996fac981059a6f\",\n                    \"main\": false,\n                    \"confirmed\": false,\n                    \"_id\": \"618bc3c8cfce301762954e62\",\n                    \"firstName\": \"Tasanai\",\n                    \"lastName\": \"Srisawat\"\n                }\n            ],\n            \"startAt\": \"2021-11-10T02:45:00.000Z\",\n            \"endAt\": \"2021-11-10T03:00:00.000Z\",\n            \"commMethod\": \"zoom\",\n            \"note\": \"ADASDASDASD\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"618ccde54b8dec00b1c9e973\",\n            \"subject\": \"Potato Meeting\",\n            \"status\": \"pending\",\n            \"sender\": {\n                \"userId\": \"618b4cc8a996fac981059a69\",\n                \"firstName\": \"TASANAI\",\n                \"lastName\": \"SRISAWAT\"\n            },\n            \"participants\": [\n                {\n                    \"userId\": \"6189ea797b52117c02879274\",\n                    \"main\": true,\n                    \"confirmed\": false,\n                    \"_id\": \"618bc3c8cfce301762954e61\",\n                    \"firstName\": \"นายทัสนัย\",\n                    \"lastName\": \"ศรีสวัสดิ์\"\n                },\n                {\n                    \"userId\": \"618b4d47a996fac981059a6f\",\n                    \"main\": false,\n                    \"confirmed\": false,\n                    \"_id\": \"618bc3c8cfce301762954e62\",\n                    \"firstName\": \"Tasanai\",\n                    \"lastName\": \"Srisawat\"\n                }\n            ],\n            \"startAt\": \"2021-11-10T02:45:00.000Z\",\n            \"endAt\": \"2021-11-10T03:00:00.000Z\",\n            \"commMethod\": \"zoom\",\n            \"note\": \"ADASDASDASD\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"35b9fb85-0edf-429b-ab65-0086234ea729"},{"name":"My Appointments per month","id":"94662b81-9280-48ed-b7cb-9e8bb3351e66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"6acba246-6180-4d70-9275-eb9e6e6c5658","type":"text"},{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"}],"url":"localhost:3000/appointment/2021/11","urlObject":{"port":"3000","path":["appointment","2021","11"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"353fcd6a-45b9-41b2-9e63-862083a4a0fe","name":"My Appointments per month","originalRequest":{"method":"GET","header":[],"url":{"raw":"?Schedu-Token&Schedu-UID","query":[{"key":"Schedu-Token","value":null,"type":"text"},{"key":"Schedu-UID","value":null,"type":"text"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"appointments\": [\n        {\n            \"_id\": \"618bb5c26fef719fa830e82c\",\n            \"subject\": \"Test Meeting\",\n            \"status\": \"ongoing\",\n            \"sender\": {\n                \"userId\": \"6189ea797b52117c02879274\",\n                \"firstName\": \"นายทัสนัย\",\n                \"lastName\": \"ศรีสวัสดิ์\"\n            },\n            \"participants\": [\n                {\n                    \"userId\": \"618b4cc8a996fac981059a69\",\n                    \"main\": true,\n                    \"confirmed\": false,\n                    \"_id\": \"618bb5c26fef719fa830e82d\",\n                    \"firstName\": \"TASANAI\",\n                    \"lastName\": \"SRISAWAT\"\n                },\n                {\n                    \"userId\": \"618b4d47a996fac981059a6f\",\n                    \"main\": false,\n                    \"confirmed\": false,\n                    \"_id\": \"618bb5c26fef719fa830e82e\",\n                    \"firstName\": \"Tasanai\",\n                    \"lastName\": \"Srisawat\"\n                }\n            ],\n            \"startAt\": \"2021-11-10T02:00:00.000Z\",\n            \"endAt\": \"2021-11-10T02:15:00.000Z\",\n            \"commMethod\": \"face\",\n            \"note\": \"ABC123!\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"94662b81-9280-48ed-b7cb-9e8bb3351e66"},{"name":"My Appointment by ID","id":"eeaa9039-61c9-48d3-8953-79197da158b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/appointment/6199db58b06d11f5af90d48d","urlObject":{"port":"3000","path":["appointment","6199db58b06d11f5af90d48d"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eeaa9039-61c9-48d3-8953-79197da158b5"},{"name":"Get Appointment Counter","id":"4f70cb78-afc4-4596-a44e-6eb0703d331d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"6acba246-6180-4d70-9275-eb9e6e6c5658","type":"text"},{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"}],"url":"localhost:3000/appointment/count","urlObject":{"port":"3000","path":["appointment","count"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9774e950-b409-4069-9338-446ff2b6a198","name":"Get Appointment Counter","originalRequest":{"method":"GET","header":[{"key":"Schedu-Token","value":"","type":"text"},{"key":"Schedu-UID","value":"","type":"text"}]},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"overall\": 5,\n    \"request\": 2,\n    \"approve\": 3,\n    \"end\": 0,\n    \"active\": 3\n}"}],"_postman_id":"4f70cb78-afc4-4596-a44e-6eb0703d331d"},{"name":"Create Appointment","id":"4dbc1c42-1891-4a75-979b-9554ddcd9485","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Potato Meeting\",\n    \"sender\": \"6189ea797b52117c02879274\",\n    \"receiver\": \"6189ea797b52117c02879274\",\n    \"participants\": [\"6189ea797b52117c02879274\", \"6189ea797b52117c02879274\"],\n    \"startAt\": \"2021-04-23T09:00:00.000+07:00\",\n    \"endAt\": \"2021-04-23T09:15:00.000+07:00\",\n    \"commMethod\": \"meet\",\n    \"commUrl\": \"\",\n    \"note\": \"Hello there! Welcome to the potato meeting.\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/appointment","urlObject":{"port":"3000","path":["appointment"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e44ebf28-0635-453e-8ecd-e8c8307c075b","name":"Successfully Create","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Potato Meeting\",\n    \"sender\": \"6189ea797b52117c02879274\",\n    \"receiver\": \"6189ea797b52117c02879274\",\n    \"participants\": [\"6189ea797b52117c02879274\", \"6189ea797b52117c02879274\"],\n    \"startAt\": \"2021-04-23T09:00:00.000+07:00\",\n    \"endAt\": \"2021-04-23T09:15:00.000+07:00\",\n    \"commMethod\": \"meet\",\n    \"commUrl\": \"\",\n    \"note\": \"Hello there! Welcome to the potato meeting.\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/appointment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully create new appointment (ID: 61860b983fc36cb62389bcec)\"\n}"}],"_postman_id":"4dbc1c42-1891-4a75-979b-9554ddcd9485"},{"name":"Get Recently Contacted","id":"681090d4-3f34-4110-a0ff-a07e589466ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"41e99ce0-0c25-4fbe-912b-5b07fd04fae5","type":"text"},{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"}],"url":"localhost:3000/appointment/recently","urlObject":{"port":"3000","path":["appointment","recently"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"681090d4-3f34-4110-a0ff-a07e589466ef"}],"id":"81157971-cdf8-4311-b3e5-66c52b6e9e0d","_postman_id":"81157971-cdf8-4311-b3e5-66c52b6e9e0d","description":""},{"name":"Auth","item":[{"name":"Sign-in with Google","id":"fbabdcdc-d6ad-4590-813f-bb1d5466e187","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/","urlObject":{"port":"3000","path":["auth",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dd3806ff-6555-45df-be8b-2a52c5afd8c2","name":"Sign-in with Google","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"user\": {/* ... */}\n}"}],"_postman_id":"fbabdcdc-d6ad-4590-813f-bb1d5466e187"},{"name":"Sign-in with Token","id":"3f61a39c-1738-4b4e-83fc-15dd364b6712","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\": \"{AUTH_TOKEN_IN_SECURE_STORE}\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/token","urlObject":{"port":"3000","path":["auth","token"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"28054856-2935-4f14-9564-9a82639e8a20","name":"Sign-in with Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"{AUTH_TOKEN_IN_SECURE_STORE}\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/token"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \n    }\n}"}],"_postman_id":"3f61a39c-1738-4b4e-83fc-15dd364b6712"}],"id":"a49a42f1-fed1-4ced-a6b6-7d5c4c24e3cc","_postman_id":"a49a42f1-fed1-4ced-a6b6-7d5c4c24e3cc","description":""},{"name":"Account","item":[{"name":"Get All /wo Myself","id":"0a710d37-0528-4c1c-9422-5b55cc15f967","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"9966e097-d110-4ff3-8b02-fc5f2840394c","type":"text"},{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"}],"url":"localhost:3000/account/all","urlObject":{"port":"3000","path":["account","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"faceae9a-90f0-48a0-a736-936088e7ad80","name":"Get All /wo Myself","originalRequest":{"method":"GET","header":[{"key":"Schedu-Token","value":"","type":"text"},{"key":"Schedu-UID","value":"","type":"text"}],"url":"localhost:3000/account/all"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"contact\": {\n            \"email\": \"62070074@it.kmitl.ac.th\",\n            \"tel\": null\n        },\n        \"setting\": {\n            \"activeTime\": {\n                \"startAt\": \"08:30\",\n                \"endAt\": \"16:30\"\n            },\n            \"displayTel\": false,\n            \"weekendReceive\": false\n        },\n        \"favorite\": [],\n        \"_id\": \"6189ea797b52117c02879274\",\n        \"googleId\": \"109613832890761331119\",\n        \"businessId\": \"62070074\",\n        \"firstName\": \"นายทัสนัย\",\n        \"lastName\": \"ศรีสวัสดิ์\",\n        \"role\": \"student\",\n        \"image\": \"https://lh3.googleusercontent.com/a-/AOh14GiR2Yf2lqH_wHzA7vVvPlyjDL7rnAmUJxRz3ixq=s96-c\",\n        \"__v\": 0\n    },\n    {\n        \"contact\": {\n            \"email\": \"62070074@kmitl.ac.th\",\n            \"tel\": null\n        },\n        \"setting\": {\n            \"activeTime\": {\n                \"startAt\": \"08:30\",\n                \"endAt\": \"16:30\"\n            },\n            \"displayTel\": false,\n            \"weekendReceive\": false\n        },\n        \"favorite\": [],\n        \"_id\": \"618b4cc8a996fac981059a69\",\n        \"googleId\": \"115577857284817459202\",\n        \"businessId\": \"62070074\",\n        \"firstName\": \"TASANAI\",\n        \"lastName\": \"SRISAWAT\",\n        \"role\": \"student\",\n        \"image\": \"https://lh3.googleusercontent.com/a-/AOh14Ggp2davJnbuZ0SMtsVuNJy1VNLhirEwgZUx9zOZ5g=s96-c\",\n        \"__v\": 0\n    },\n    {\n        \"contact\": {\n            \"email\": \"tasanai.ssw@gmail.com\",\n            \"tel\": null\n        },\n        \"setting\": {\n            \"activeTime\": {\n                \"startAt\": \"08:30\",\n                \"endAt\": \"16:30\"\n            },\n            \"displayTel\": false,\n            \"weekendReceive\": false\n        },\n        \"favorite\": [],\n        \"_id\": \"618b4d47a996fac981059a6f\",\n        \"googleId\": \"110349454077112635962\",\n        \"businessId\": \"\",\n        \"firstName\": \"Tasanai\",\n        \"lastName\": \"Srisawat\",\n        \"role\": \"teacher\",\n        \"image\": \"https://lh3.googleusercontent.com/a/AATXAJzzWfkdztY2ipGcRBPcLw_RapAbpkidnnKHe4hP=s96-c\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"0a710d37-0528-4c1c-9422-5b55cc15f967"}],"id":"9f167890-27b0-4c99-b9cf-55a3c39cf9f4","_postman_id":"9f167890-27b0-4c99-b9cf-55a3c39cf9f4","description":""},{"name":"Event","item":[{"name":"Get All Events","id":"0451d968-9f44-446f-baab-addd98e6ff4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"localhost:3000/event","urlObject":{"port":"3000","path":["event"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0451d968-9f44-446f-baab-addd98e6ff4e"},{"name":"Get Monthly Events","id":"0cd9342e-92b2-47d7-8f7d-bcc2a9e9e838","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/event/2021/10","urlObject":{"port":"3000","path":["event","2021","10"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cd9342e-92b2-47d7-8f7d-bcc2a9e9e838"}],"id":"4611f606-ebd0-469f-8dd6-b6957bc4d0b9","_postman_id":"4611f606-ebd0-469f-8dd6-b6957bc4d0b9","description":""},{"name":"Registrar","item":[{"name":"Get Study Table","id":"cfedf50f-604e-4b00-92b0-6e4c28233f44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"},{"key":"Schedu-Token","value":"0d32b3f0-e6bb-4ff5-9bfe-65c81768bb4c","type":"text"}],"url":"localhost:3000/registrar/courses","urlObject":{"port":"3000","path":["registrar","courses"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfedf50f-604e-4b00-92b0-6e4c28233f44"},{"name":"Get Timetable Per Month","id":"349f3180-3249-4c00-8f0f-b366a1bdf1a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"0f1cb92f-a920-4812-b673-ca9be369071c","type":"text"},{"key":"Schedu-UID","value":"6189ea797b52117c02879274","type":"text"}],"url":"localhost:3000/registrar/courses/2021/9","urlObject":{"port":"3000","path":["registrar","courses","2021","9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"349f3180-3249-4c00-8f0f-b366a1bdf1a4"}],"id":"99b7bdd1-ca75-4732-9713-1b2a05c83057","_postman_id":"99b7bdd1-ca75-4732-9713-1b2a05c83057","description":""},{"name":"Notification","item":[{"name":"Get all Notification","id":"abc86c8a-3a02-481e-8d6a-bedb25d23f9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Schedu-Token","value":"8af84451-67b3-49dd-ad94-f81f99cc217e","type":"text"},{"key":"Schedu-UID","value":"618b4cc8a996fac981059a69","type":"text"}],"url":"localhost:3000/notification/all","urlObject":{"port":"3000","path":["notification","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"abc86c8a-3a02-481e-8d6a-bedb25d23f9a"},{"name":"Get active Notification","id":"3e87be1e-b780-487c-af37-1f3562812796","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/notification/active","urlObject":{"port":"3000","path":["notification","active"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e87be1e-b780-487c-af37-1f3562812796"},{"name":"Get newest Notification","id":"4722947c-3f0a-403e-8a9a-5868ec2f479d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/notification/newest","urlObject":{"port":"3000","path":["notification","newest"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4722947c-3f0a-403e-8a9a-5868ec2f479d"}],"id":"2a624fad-8e76-4d85-80c6-dd4109182958","_postman_id":"2a624fad-8e76-4d85-80c6-dd4109182958","description":""}]}