{"info":{"_postman_id":"999159c3-6172-447f-8f86-8893eb2aaafa","name":"Groupee API Documentation","description":"<html><head></head><body><p>This is the API used to generate requests in Groupee's backend. Written in Typescript and Express. Database is MySQL.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14574078","collectionId":"999159c3-6172-447f-8f86-8893eb2aaafa","publishedId":"UVRBm63H","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-12-20T23:56:52.000Z"},"item":[{"name":"Initialize Tables","item":[{"name":"Initialize tables","id":"9a829e1d-6bcb-4707-b1e5-bb1b356410c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001","urlObject":{"protocol":"http","port":"3001","host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6781e780-89e1-4cee-aa3f-f4584371f828","name":"Initialize tables","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"18"},{"key":"ETag","value":"W/\"12-UtQi3YS7GdmdJnStdZ0/OpBWd60\""},{"key":"Date","value":"Sun, 19 Dec 2021 00:19:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Tables initialized"}],"_postman_id":"9a829e1d-6bcb-4707-b1e5-bb1b356410c9"}],"id":"e154a8ff-38bc-4526-9d77-1935ac594ba0","description":"<p>This section contains the get request to initialize the tables in MySQL. This request should be run first before all others.</p>\n","_postman_id":"e154a8ff-38bc-4526-9d77-1935ac594ba0"},{"name":"Login","item":[{"name":"Sign Up","id":"24a0a479-918f-404b-afca-e32029036e41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"student_id\":5001020,\n    \"username\": \"JohnD\",\n    \"password\": \"password\",\n    \"first_name\": \"John\",\n    \"middle_name\": \"d\",\n    \"last_name\": \"Doe\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/authentication/signup","urlObject":{"protocol":"http","port":"3001","path":["authentication","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dc2fb932-a3aa-4595-89a4-d7cd3aa9ebe5","name":"Sign Up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"student_id\":5001020,\n    \"username\": \"JohnD\",\n    \"password\": \"password\",\n    \"first_name\": \"John\",\n    \"middle_name\": \"d\",\n    \"last_name\": \"Doe\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/authentication/signup"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-orJ6rtjt0DzaXJComYiZbGoPLeE\""},{"key":"Date","value":"Mon, 20 Dec 2021 23:52:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Student account: JohnD created for student #5001020!"}],"_postman_id":"24a0a479-918f-404b-afca-e32029036e41"},{"name":"Login","id":"635958ec-50b6-463c-a084-a98c905dce4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"DanicaH\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/authentication/login","urlObject":{"protocol":"http","port":"3001","path":["authentication","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eb1fc001-8911-42a6-be64-6d70e2dece17","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"DanicaH\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/authentication/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"276"},{"key":"ETag","value":"W/\"114-qo2ACyK1oiQJ3IyCwKrJEZyVzaI\""},{"key":"Date","value":"Mon, 20 Dec 2021 23:53:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"first_name\": \"Danica\",\n    \"last_name\": \"Hurst\",\n    \"school_id\": 5001193,\n    \"username\": \"DanicaH\",\n    \"session_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkRhbmljYUgiLCJpYXQiOjE2NDAwNDQzOTQsImV4cCI6MTY0MDEzMDc5NH0.uTjh4DTeWQZnAF6QmQiSvwokPvO9HnRgEaop7BMpmRo\",\n    \"role\": \"Student\"\n}"}],"_postman_id":"635958ec-50b6-463c-a084-a98c905dce4a"}],"id":"4407cb72-6770-4156-a16a-cc4f7d8ac1b6","_postman_id":"4407cb72-6770-4156-a16a-cc4f7d8ac1b6","description":""},{"name":"Classlist","item":[{"name":"Search Student if they are in class","id":"64646ac4-b568-4328-af3e-43b4725182f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/classlist?course_name=Linear Algebra&student_id=5001504","urlObject":{"protocol":"http","port":"3001","path":["classlist"],"host":["localhost"],"query":[{"key":"course_name","value":"Linear Algebra"},{"key":"student_id","value":"5001504"}],"variable":[]}},"response":[{"id":"ea698afa-04d7-462b-90a4-36efc6cb19ba","name":"Search Student if they are in class","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/classlist?course_name=Linear Algebra&student_id=5001504","protocol":"http","host":["localhost"],"port":"3001","path":["classlist"],"query":[{"key":"course_name","value":"Linear Algebra"},{"key":"student_id","value":"5001504"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"131"},{"key":"ETag","value":"W/\"83-DN8R5tFpZaSzDA6C4DY1ZKYF2nU\""},{"key":"Date","value":"Sat, 18 Dec 2021 23:28:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001504,\n        \"section_no\": 1,\n        \"major\": \"CS\",\n        \"first_name\": \"Hadassah\",\n        \"last_name\": \"Dunlap\",\n        \"middle_name\": \"K\"\n    }\n]"}],"_postman_id":"64646ac4-b568-4328-af3e-43b4725182f3"},{"name":"Search the whole class","id":"81442556-2446-4821-95ff-9f79a94bbc91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/classlist?course_name=Linear Algebra","urlObject":{"protocol":"http","port":"3001","path":["classlist"],"host":["localhost"],"query":[{"key":"course_name","value":"Linear Algebra"}],"variable":[]}},"response":[{"id":"b2ee6be4-ef86-479c-93e7-f113e1b6f390","name":"Search the whole class","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3001/classlist?course_name=Linear Algebra","protocol":"http","host":["localhost"],"port":"3001","path":["classlist"],"query":[{"key":"course_name","value":"Linear Algebra"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2869"},{"key":"ETag","value":"W/\"b35-HlCKj3Ittfof1PfhnQ5rzvdnbU8\""},{"key":"Date","value":"Sat, 18 Dec 2021 23:48:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001504,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Hadassah\",\n        \"last_name\": \"Dunlap\",\n        \"middle_name\": \"K\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002092,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Colten\",\n        \"last_name\": \"Flowers\",\n        \"middle_name\": \"H\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001799,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Fabian\",\n        \"last_name\": \"Stone\",\n        \"middle_name\": \"C\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002584,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Daphne\",\n        \"last_name\": \"Duran\",\n        \"middle_name\": \"H\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002486,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"King\",\n        \"last_name\": \"Barker\",\n        \"middle_name\": \"I\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002217,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Jakayla\",\n        \"last_name\": \"Lawrence\",\n        \"middle_name\": \"\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002666,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Jamie\",\n        \"last_name\": \"Barton\",\n        \"middle_name\": \"A\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002183,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Braydon\",\n        \"last_name\": \"Mays\",\n        \"middle_name\": \"L\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002823,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Tess\",\n        \"last_name\": \"May\",\n        \"middle_name\": \"B\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001169,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Harold\",\n        \"last_name\": \"Ellison\",\n        \"middle_name\": \"E\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001360,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Nolan\",\n        \"last_name\": \"Olsen\",\n        \"middle_name\": \"\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002213,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Osvaldo\",\n        \"last_name\": \"Villa\",\n        \"middle_name\": \"A\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001340,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Maren\",\n        \"last_name\": \"James\",\n        \"middle_name\": \"K\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001456,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Dashawn\",\n        \"last_name\": \"James\",\n        \"middle_name\": \"\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001927,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Camila\",\n        \"last_name\": \"Griffin\",\n        \"middle_name\": \"G\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002248,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Ansley\",\n        \"last_name\": \"Carpenter\",\n        \"middle_name\": \"C\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001176,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Tripp\",\n        \"last_name\": \"Summers\",\n        \"middle_name\": \"D\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001187,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Emma\",\n        \"last_name\": \"Morgan\",\n        \"middle_name\": \"A\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5001486,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Monique\",\n        \"last_name\": \"Kelly\",\n        \"middle_name\": \"I\"\n    },\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002630,\n        \"section_no\": 2,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Zaid\",\n        \"last_name\": \"Jones\",\n        \"middle_name\": \"L\"\n    }\n]"}],"_postman_id":"81442556-2446-4821-95ff-9f79a94bbc91"},{"name":"Get courses and section students are enrolled in","id":"5eeb3523-c3c4-4748-a35b-4ed924ed5b61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/classlist/fetch?school_id=5001193","urlObject":{"protocol":"http","port":"3001","path":["classlist","fetch"],"host":["localhost"],"query":[{"key":"school_id","value":"5001193"}],"variable":[]}},"response":[{"id":"4d6fc75a-bbf9-44b5-9331-cf87430b9681","name":"Get courses and section students are enrolled in","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/classlist/fetch?school_id=5001193","protocol":"http","host":["localhost"],"port":"3001","path":["classlist","fetch"],"query":[{"key":"school_id","value":"5001193"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"396"},{"key":"ETag","value":"W/\"18c-qhQQ+j+tCQ9k6sscUIK+ysqgCEQ\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:16:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"course_id\": 271,\n        \"course_name\": \"Discrete Math\",\n        \"instructor_id\": 1005209,\n        \"student_id\": 5001193,\n        \"section_no\": 1,\n        \"group_no\": null\n    },\n    {\n        \"course_id\": 331,\n        \"course_name\": \"Data Structures and Algorithms\",\n        \"instructor_id\": 1003852,\n        \"student_id\": 5001193,\n        \"section_no\": 1,\n        \"group_no\": null\n    },\n    {\n        \"course_id\": 317,\n        \"course_name\": \"Philosophy and Film\",\n        \"instructor_id\": 1008229,\n        \"student_id\": 5001193,\n        \"section_no\": 1,\n        \"group_no\": null\n    }\n]"}],"_postman_id":"5eeb3523-c3c4-4748-a35b-4ed924ed5b61"}],"id":"6248714d-880b-4428-9ad9-ac48b1533acd","_postman_id":"6248714d-880b-4428-9ad9-ac48b1533acd","description":""},{"name":"Forum","item":[{"name":"Create new preference post","id":"ee2bb45f-fbfd-45bb-b1a3-7bb3a21a006d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"requestID\":800123,\n    \"student_id\": 5001586,\n    \"availability\": \"Friday\",\n    \"group_size\": 2,\n    \"section\": 1,\n    \"courseName\": \"Discrete Math\",\n    \"comments\": \"Looking for members in section 1 (Discrete Math)\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/requests/create","urlObject":{"protocol":"http","port":"3001","path":["requests","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"03794439-8488-4ea7-b08f-0ec4264ab794","name":"Create new preference post","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"requestID\":800123,\n    \"student_id\": 5001586,\n    \"availability\": \"Friday\",\n    \"group_size\": 2,\n    \"section\": 1,\n    \"courseName\": \"Discrete Math\",\n    \"comments\": \"Looking for members in section 1 (Discrete Math)\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/requests/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"83"},{"key":"ETag","value":"W/\"53-YJYWdpgb3CZbuZXPjQ7HmdirZG0\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:17:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Created group preference post #800123 for Discrete Math.\"\n}"}],"_postman_id":"ee2bb45f-fbfd-45bb-b1a3-7bb3a21a006d"},{"name":"Get the preference posts in classes that the student is enrolled in","id":"9f7958bb-2ffe-4362-9252-4224abf8c5ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/requests?school_id=5001187","urlObject":{"protocol":"http","port":"3001","path":["requests"],"host":["localhost"],"query":[{"key":"school_id","value":"5001187"}],"variable":[]}},"response":[{"id":"48c986f5-4f13-4252-acbd-f709bbf17855","name":"Get the preference posts in classes that the student is enrolled in","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/requests?school_id=5001187","protocol":"http","host":["localhost"],"port":"3001","path":["requests"],"query":[{"key":"school_id","value":"5001187"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-hfGVPjExOBffGkZBzjwaotyNaKQ\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:17:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"request_id\": 800123,\n        \"poster_id\": 5001586,\n        \"availability\": \"Friday\",\n        \"size\": 2,\n        \"course_id\": 271,\n        \"section\": 1,\n        \"status\": \"looking for members\",\n        \"comments\": \"Looking for members in section 1 (Discrete Math)\",\n        \"username\": \"EmilioF\",\n        \"course_name\": \"Discrete Math\"\n    }\n]"}],"_postman_id":"9f7958bb-2ffe-4362-9252-4224abf8c5ee"},{"name":"Make comments under the post","id":"9703e01e-437e-444a-b1ef-6b538a91e01d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"post_id\": 800123,\n    \"commenter_id\": 5002635,\n    \"content\": \"I am interested in joining.\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/comment/","urlObject":{"protocol":"http","port":"3001","path":["comment",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cae607af-d875-4f62-a96b-5457744d3ce1","name":"Make comments under the post","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"post_id\": 800123,\n    \"commenter_id\": 5002635,\n    \"content\": \"I am interested in joining.\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/comment/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-LG1DS7/Q9+Xwi6RXGNof6W4hXXI\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:17:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Added new comment to post: 800123"}],"_postman_id":"9703e01e-437e-444a-b1ef-6b538a91e01d"},{"name":"See comments under the post","id":"99956fc9-204b-4602-997d-b6ce0b6ea215","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/comment?post_id=800123","urlObject":{"protocol":"http","port":"3001","path":["comment"],"host":["localhost"],"query":[{"key":"post_id","value":"800123"}],"variable":[]}},"response":[{"id":"db320e0e-69e7-4d24-af0b-0bc3703d1022","name":"See comments under the post","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/comment?post_id=800123","protocol":"http","host":["localhost"],"port":"3001","path":["comment"],"query":[{"key":"post_id","value":"800123"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"ETag","value":"W/\"89-RV7Epsib4mR6eazgOMOrYuClzlg\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:17:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"post_id\": 800123,\n        \"commenter_id\": 5002635,\n        \"content\": \"I am interested in joining.\",\n        \"time_stamp\": \"2021-12-20 14:17:43\",\n        \"username\": \"DiyaF\"\n    }\n]"}],"_postman_id":"99956fc9-204b-4602-997d-b6ce0b6ea215"},{"name":"Delete our comment","id":"3771f04d-62de-4d4e-aab9-312070816a33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"post_id\": 800123,\n    \"commenter_id\": 5002635,\n    \"time_stamp\" : \"2021-12-18 17:01:23\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/comment/","urlObject":{"protocol":"http","port":"3001","path":["comment",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4d290150-faf8-4c8a-9be2-5cb66f11b951","name":"Delete our comment","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"post_id\": 800123,\n    \"commenter_id\": 5002635,\n    \"time_stamp\" : \"2021-12-18 17:01:23\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/comment/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-KhBSA3ljDBmmdQ9GBagcuqGUKSc\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:18:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Successfully deleted your comment."}],"_postman_id":"3771f04d-62de-4d4e-aab9-312070816a33"},{"name":"Delete post","id":"ddeb7510-4cfd-4be6-b66a-bfbfaee1dc6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/requests?request_id=800123","urlObject":{"protocol":"http","port":"3001","path":["requests"],"host":["localhost"],"query":[{"key":"request_id","value":"800123"}],"variable":[]}},"response":[{"id":"449ca1d0-7114-49a1-9cc0-c868225eb28b","name":"Delete post","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3001/requests?request_id=800123","protocol":"http","host":["localhost"],"port":"3001","path":["requests"],"query":[{"key":"request_id","value":"800123"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-zYAmH+RwzlBoa6ru11KBEIIxFEY\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:24:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Deleted preference post #800123.\"\n}"}],"_postman_id":"ddeb7510-4cfd-4be6-b66a-bfbfaee1dc6e"}],"id":"8651f43e-dd66-40fe-9958-f49957b25f69","_postman_id":"8651f43e-dd66-40fe-9958-f49957b25f69","description":""},{"name":"Join Requests","item":[{"name":"Request to join group","id":"6c3c1cae-e451-4fc2-ae12-941742a0cf6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"post_id\": 800232,\n    \"student_id\": 5001020\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/join/","urlObject":{"protocol":"http","port":"3001","path":["join",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"661e824d-4015-483b-85e9-d143f05e19aa","name":"Request to join group","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"post_id\": 800232,\n    \"student_id\": 5001020\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/join/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"109"},{"key":"ETag","value":"W/\"6d-6NuD1W1rrAj1w6TAGFMjsPl89Mk\""},{"key":"Date","value":"Mon, 20 Dec 2021 21:27:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Submitted a request to join group in posting #800232. Your request status: Pending\"\n}"}],"_postman_id":"6c3c1cae-e451-4fc2-ae12-941742a0cf6e"},{"name":"See join requests to your group","id":"fee77cee-8a23-43c7-95ac-99e695be97f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/join/posting?school_id=5001586","urlObject":{"protocol":"http","port":"3001","path":["join","posting"],"host":["localhost"],"query":[{"key":"school_id","value":"5001586"}],"variable":[]}},"response":[{"id":"4475b189-611c-4710-b181-40e3020c0ba9","name":"See join requests to your group","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/join/posting?school_id=5001586","protocol":"http","host":["localhost"],"port":"3001","path":["join","posting"],"query":[{"key":"school_id","value":"5001586"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"333"},{"key":"ETag","value":"W/\"14d-7SsIu91JtXmSJ6P2LzCZ5lRf0G4\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:03:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"post_id\": 800232,\n        \"student_id\": 5001020,\n        \"status\": \"pending\",\n        \"section\": 1,\n        \"course_id\": 271,\n        \"size\": 2,\n        \"course_name\": \"Discrete Math\",\n        \"first_name\": \"Rex\",\n        \"last_name\": \"Dunn\"\n    },\n    {\n        \"post_id\": 800232,\n        \"student_id\": 5001193,\n        \"status\": \"pending\",\n        \"section\": 1,\n        \"course_id\": 271,\n        \"size\": 2,\n        \"course_name\": \"Discrete Math\",\n        \"first_name\": \"Danica\",\n        \"last_name\": \"Hurst\"\n    }\n]"}],"_postman_id":"fee77cee-8a23-43c7-95ac-99e695be97f0"},{"name":"Accept/Decline Join Request","id":"af7e2d86-e769-4be8-90cf-8fef105a1a04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"Accepted\",\n    \"post_id\":800232,\n    \"student_id\":5001193\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/join","urlObject":{"protocol":"http","port":"3001","path":["join"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"87c4ce7a-9970-4468-8f35-5519c79482cd","name":"Accept/Decline Join Request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"    \",\n    \"post_id\":800232,\n    \"student_id\":5001193\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/join"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-1LDh1tcgEsenGyyPaFVgzq5s4YI\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:06:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Added a member to your group request#800232!'\"\n}"}],"_postman_id":"af7e2d86-e769-4be8-90cf-8fef105a1a04"},{"name":"See join requests you've made and its status","id":"faa81813-62da-47f9-893c-0eb6f36486dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/join/requests?student_id=5001193","urlObject":{"protocol":"http","port":"3001","path":["join","requests"],"host":["localhost"],"query":[{"key":"student_id","value":"5001193"}],"variable":[]}},"response":[{"id":"d9eba979-2dd4-4c7b-aff6-d8602cea74df","name":"See join requests you've made","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/join/requests?student_id=5001193","protocol":"http","host":["localhost"],"port":"3001","path":["join","requests"],"query":[{"key":"student_id","value":"5001193"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"132"},{"key":"ETag","value":"W/\"84-OGCTYxSi+1iZOm5BtafY5byCXCs\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:09:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"post_id\": 800232,\n        \"student_id\": 5001193,\n        \"status\": \"    \",\n        \"course_name\": \"Discrete Math\",\n        \"availability\": \"Friday\",\n        \"section\": 1,\n        \"size\": 2\n    }\n]"}],"_postman_id":"faa81813-62da-47f9-893c-0eb6f36486dc"}],"id":"083dd4ba-0873-4afd-9737-9028e14e21e3","_postman_id":"083dd4ba-0873-4afd-9737-9028e14e21e3","description":""},{"name":"Group","item":[{"name":"Check who is in each request (as \"Accepted\")","id":"055c423c-968a-4058-843b-f1e0251adb7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/groups/members?post_id=800232","urlObject":{"protocol":"http","port":"3001","path":["groups","members"],"host":["localhost"],"query":[{"key":"post_id","value":"800232"}],"variable":[]}},"response":[{"id":"3c983449-9189-403b-a501-1928338a099b","name":"Check who is in each request (as \"Accepted\")","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/groups/members?post_id=800232","protocol":"http","host":["localhost"],"port":"3001","path":["groups","members"],"query":[{"key":"post_id","value":"800232"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-i+4c3Flh4mF7eZfrcgFguqk0pPE\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:39:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"first_name\": \"Danica\",\n        \"last_name\": \"Hurst\",\n        \"section_no\": 1\n    }\n]"}],"_postman_id":"055c423c-968a-4058-843b-f1e0251adb7c"},{"name":"Student not in group yet","id":"83e87565-01bc-44b2-be7f-f5071d63f06e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/classlist?course_name=Linear Algebra&student_id=5002092","urlObject":{"protocol":"http","port":"3001","path":["classlist"],"host":["localhost"],"query":[{"key":"course_name","value":"Linear Algebra"},{"key":"student_id","value":"5002092"}],"variable":[]}},"response":[{"id":"fc262396-3aed-47f5-80f6-ead046946204","name":"Student not in group yet","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/classlist?course_name=Linear Algebra&student_id=5002092","protocol":"http","host":["localhost"],"port":"3001","path":["classlist"],"query":[{"key":"course_name","value":"Linear Algebra"},{"key":"student_id","value":"5002092"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"146"},{"key":"ETag","value":"W/\"92-0Jm5k87qDkKDuwroSK6aYdxZtwQ\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:12:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002092,\n        \"section_no\": 1,\n        \"group_no\": null,\n        \"major\": \"CS\",\n        \"first_name\": \"Colten\",\n        \"last_name\": \"Flowers\",\n        \"middle_name\": \"H\"\n    }\n]"}],"_postman_id":"83e87565-01bc-44b2-be7f-f5071d63f06e"},{"name":"Add student to group ","id":"e2c337fd-2769-4e1b-b625-9615d9e09aa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"student_id\":5002092,\n    \"course_id\":211\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/groups/members","urlObject":{"protocol":"http","port":"3001","path":["groups","members"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"afc22a90-0679-407b-a428-8813dffb3853","name":"Add student to group ","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"student_id\":5002092,\n    \"course_id\":211\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/groups/members"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-fTc39D+nbMBmd3isUkVj+oAm/JY\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:13:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Group members updated.\"\n}"}],"_postman_id":"e2c337fd-2769-4e1b-b625-9615d9e09aa1"},{"name":"Student in group","id":"d36c5bd9-6cd6-4eb7-85e9-4e2b6223ab40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/classlist?course_name=Linear Algebra&student_id=5002092","urlObject":{"protocol":"http","port":"3001","path":["classlist"],"host":["localhost"],"query":[{"key":"course_name","value":"Linear Algebra"},{"key":"student_id","value":"5002092"}],"variable":[]}},"response":[{"id":"75814017-f50f-48ac-bef2-1e87fd532bfc","name":"Student in group","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/classlist?course_name=Linear Algebra&student_id=5002092","protocol":"http","host":["localhost"],"port":"3001","path":["classlist"],"query":[{"key":"course_name","value":"Linear Algebra"},{"key":"student_id","value":"5002092"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"143"},{"key":"ETag","value":"W/\"8f-9zRlY6SUjixMP2o8v+xys9mfv9g\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:57:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"course_id\": 211,\n        \"student_id\": 5002092,\n        \"section_no\": 1,\n        \"group_no\": 2,\n        \"major\": \"CS\",\n        \"first_name\": \"Colten\",\n        \"last_name\": \"Flowers\",\n        \"middle_name\": \"H\"\n    }\n]"}],"_postman_id":"d36c5bd9-6cd6-4eb7-85e9-4e2b6223ab40"},{"name":"View full groups as professor","id":"ffdb906b-60d5-4bd9-ac4b-58db8a1a3187","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/groups?professor_id=1005209","urlObject":{"protocol":"http","port":"3001","path":["groups"],"host":["localhost"],"query":[{"key":"professor_id","value":"1005209"}],"variable":[]}},"response":[{"id":"dcbf57c0-45df-4e0f-849c-ce0bee9a3082","name":"View full groups as professor","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/groups?professor_id=1005209","protocol":"http","host":["localhost"],"port":"3001","path":["groups"],"query":[{"key":"professor_id","value":"1005209"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"177"},{"key":"ETag","value":"W/\"b1-eH8fY1xQYgKUkGKJPcQdk6A7Zw0\""},{"key":"Date","value":"Mon, 20 Dec 2021 22:58:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"course_id\": 271,\n        \"course_name\": \"Discrete Math\",\n        \"request_id\": 800232,\n        \"poster_id\": 5001586,\n        \"size\": 6,\n        \"availability\": \"Friday\",\n        \"section\": 1,\n        \"first_name\": \"Emilio\",\n        \"last_name\": \"Foster\"\n    }\n]"}],"_postman_id":"ffdb906b-60d5-4bd9-ac4b-58db8a1a3187"}],"id":"926e3314-5930-42e6-8bda-09a3a13f84e0","_postman_id":"926e3314-5930-42e6-8bda-09a3a13f84e0","description":""},{"name":"Proposals","item":[{"name":"Submitting a proposal","id":"5b0be31e-53d4-4869-86aa-3c756dfbc9cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"submission_id\": 123123,\n    \"group_no\": 2,\n    \"topic\": \"Our new proposal\",\n    \"description\": \"Updated proposal…\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/proposal","urlObject":{"protocol":"http","port":"3001","path":["proposal"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"abab5b52-fe94-4737-90e7-5d7e3eb73b3b","name":"Submitting a proposal","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"submission_id\": 123123,\n    \"group_no\": 2,\n    \"topic\": \"Our new proposal\",\n    \"description\": \"Updated proposal…\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/proposal"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"87"},{"key":"ETag","value":"W/\"57-jrpzKptERJJ39KqagO5QNccOu1E\""},{"key":"Date","value":"Mon, 20 Dec 2021 23:28:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Submitted. Your proposal is under review by <Professor name>\"\n}"}],"_postman_id":"5b0be31e-53d4-4869-86aa-3c756dfbc9cd"},{"name":"Get proposals for class","id":"77075406-19ef-4426-bd33-9bf7c89b0802","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/proposal/submissions?course_id=271","urlObject":{"protocol":"http","port":"3001","path":["proposal","submissions"],"host":["localhost"],"query":[{"key":"course_id","value":"271"}],"variable":[]}},"response":[{"id":"3d90f020-059d-4bac-87a2-bce3d5d3f860","name":"Get proposals for class","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/proposal/submissions?course_id=271","protocol":"http","host":["localhost"],"port":"3001","path":["proposal","submissions"],"query":[{"key":"course_id","value":"271"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"168"},{"key":"ETag","value":"W/\"a8-1YhapL+slOiQdHzqZ0Wa8TsRhYI\""},{"key":"Date","value":"Mon, 20 Dec 2021 23:30:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"submission_id\": 123123,\n        \"group_no\": 3,\n        \"submission_date\": \"2021-12-20T23:30:27.000Z\",\n        \"topic\": \"Our new proposal\",\n        \"description\": \"Updated proposal…\",\n        \"status\": \"submitted\"\n    }\n]"}],"_postman_id":"77075406-19ef-4426-bd33-9bf7c89b0802"},{"name":"Update proposal","id":"469b5d68-5c10-4d46-9788-bc3d245395ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"Accept\",\n    \"group_no\": 3,\n    \"time_stamp\": \"2021-12-18 22:26:31\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/proposal/review","urlObject":{"protocol":"http","port":"3001","path":["proposal","review"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bcbfd731-84b8-436d-b4af-d98532a99938","name":"Update proposal","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"Accept\",\n    \"group_no\": 3,\n    \"time_stamp\": \"2021-12-18 22:26:31\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/proposal/review"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Headers","value":"x-access-token, Origin, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-TU7wnf0epE/vsgKv1NTirXyjoOE\""},{"key":"Date","value":"Mon, 20 Dec 2021 23:34:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Updated proposal. You have Accept the submission\"\n}"}],"_postman_id":"469b5d68-5c10-4d46-9788-bc3d245395ec"}],"id":"ac082614-2202-49be-a713-0456352ed684","_postman_id":"ac082614-2202-49be-a713-0456352ed684","description":""}]}