{"info":{"_postman_id":"686acdfc-4e82-4092-9e51-cdb524803c1b","name":"student statuses","description":"<html><head></head><body><p>A collection with requests for <code>/student-statuses</code> endpoint.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13348269","collectionId":"686acdfc-4e82-4092-9e51-cdb524803c1b","publishedId":"U16gNmWU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-04T21:39:11.000Z"},"item":[{"name":"Get All Student Statuses","id":"107f7474-e918-4ea9-bbbf-7e7968f19fae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/student-statuses","description":"<h1 id=\"get-all-student-statuses\">Get all student statuses</h1>\n<h2 id=\"response\">Response</h2>\n<hr />\n<p>List of student status details where each list item contains:</p>\n<ul>\n<li><code>student_status_id</code></li>\n<li><code>student_status</code></li>\n</ul>\n","urlObject":{"path":["student-statuses"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"893973d5-755e-44e6-bbf7-aa025a81a557","name":"Mock Get All Student Statuses","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/student-statuses"},"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":"181"},{"key":"ETag","value":"W/\"b5-VhcWmcjMLpXAPaqvuZSiNdc0i30\""},{"key":"Date","value":"Sat, 04 Sep 2021 21:34:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Success\"\n    },\n    \"body\": [\n        {\n            \"student_status_id\": 1,\n            \"student_status\": \"Looking for a friend\"\n        },\n        {\n            \"student_status_id\": 2,\n            \"student_status\": \"Looking for transport\"\n        }\n    ]\n}"}],"_postman_id":"107f7474-e918-4ea9-bbbf-7e7968f19fae"},{"name":"Get Student Status By Id","id":"3a27851d-92b6-4054-8093-50ee9712b3c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/student-statuses/2","description":"<h1 id=\"get-an-student-status-by-id\">Get an student status by id</h1>\n<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li><code>student_status_id</code></li>\n<li><code>student_status</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"686acdfc-4e82-4092-9e51-cdb524803c1b","id":"686acdfc-4e82-4092-9e51-cdb524803c1b","name":"student statuses","type":"collection"}},"urlObject":{"path":["student-statuses","2"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c7f8a486-743e-4a44-b80d-4bd2399a901e","name":"Mock Get Student Status By Id","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/student-statuses/2"},"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":"115"},{"key":"ETag","value":"W/\"73-h5JCkbHopDyp7TNNb9t7R0gmu0U\""},{"key":"Date","value":"Sat, 04 Sep 2021 21:35:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Success\"\n    },\n    \"body\": {\n        \"student_status_id\": 2,\n        \"student_status\": \"Looking for transport\"\n    }\n}"}],"_postman_id":"3a27851d-92b6-4054-8093-50ee9712b3c4"},{"name":"Add A Student Status","id":"bbe808d7-f70f-4ab3-b8fa-4b32449e64d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{admin_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"student_status\":\"Looking for emotional support\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/student-statuses","description":"<h1 id=\"add-a-new-student-status\">Add a new student status</h1>\n<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li><code>student_status_id</code> New student status's id.</li>\n<li><code>affected_rows</code> Should be 1.</li>\n</ul>\n","urlObject":{"path":["student-statuses"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f968f353-6fbf-4222-9591-e984716ded02","name":"Mock Add A Student Status","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"student_status\":\"Looking for emotional support\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/student-statuses"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"112"},{"key":"ETag","value":"W/\"70-nOZQYRqElr4hB52RJfy0LCvnqxg\""},{"key":"Date","value":"Sat, 04 Sep 2021 21:35:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Student status was created!\"\n    },\n    \"body\": {\n        \"student_status_id\": 3,\n        \"affected_rows\": 1\n    }\n}"}],"_postman_id":"bbe808d7-f70f-4ab3-b8fa-4b32449e64d3"},{"name":"Update A Student Status","id":"efbf5d50-b6ac-4ed4-9845-757a4f8fb97c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{admin_token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"student_status\":\"Looking for help\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/student-statuses/3","description":"<h1 id=\"update-details-of-a-student-status\">Update details of a student status</h1>\n<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li>rows_matched</li>\n<li>rows_changed</li>\n<li>info</li>\n</ul>\n<p><em><strong>Note</strong></em> : <code>message</code> header indicates result.</p>\n","urlObject":{"path":["student-statuses","3"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"df28c2b7-74f6-468e-8597-66bf8f1708aa","name":"Mock Update A Student Status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"student_status\":\"Looking for help\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/student-statuses/3"},"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":"164"},{"key":"ETag","value":"W/\"a4-9NjOUeUs4TgeKF33Gy/k/y4oY9o\""},{"key":"Date","value":"Sat, 04 Sep 2021 21:36:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Student status updated successfully\"\n    },\n    \"body\": {\n        \"rows_matched\": 1,\n        \"rows_changed\": 1,\n        \"info\": \"Rows matched: 1  Changed: 1  Warnings: 0\"\n    }\n}"}],"_postman_id":"efbf5d50-b6ac-4ed4-9845-757a4f8fb97c"},{"name":"Delete A Student Status","id":"961f1ab1-9b46-4373-b0f2-a927933ce63f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{admin_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{base_url}}/student-statuses/3","description":"<h1 id=\"delete-a-student-status\">Delete a student status</h1>\n<h2 id=\"response\">Response</h2>\n<hr />\n<ul>\n<li>rows_removed</li></ul>\n\n<p><em><strong>Note</strong></em> : <code>message</code> header indicates result.</p>\n","urlObject":{"path":["student-statuses","3"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"40d9c667-e3a4-4f89-99dd-7a7248fdcffa","name":"Mock Delete A Student Status","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/student-statuses/3"},"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":"93"},{"key":"ETag","value":"W/\"5d-CnA+eajAae405e1cKGHV+ct1WY0\""},{"key":"Date","value":"Sat, 04 Sep 2021 21:36:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"headers\": {\n        \"error\": 0,\n        \"message\": \"Student status has been deleted\"\n    },\n    \"body\": {\n        \"rows_removed\": 1\n    }\n}"}],"_postman_id":"961f1ab1-9b46-4373-b0f2-a927933ce63f"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"b95f3145-ff17-41de-863b-d7f68792e1bd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ceb462d2-428b-4af9-a12d-61cd7cf14328","type":"text/javascript","exec":[""]}}]}