{"info":{"_postman_id":"61ccbd58-e412-4e3b-a7a6-4a81377c6ef6","name":"EduFi-3.11-MarksEntry","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<h6 id=\"this-is-an-api-documentation-for-eti-assignment-2-edufi-marks-entry-this-api-is-made-for-tutors-to-view-and-update-student-marks\">This is an API documentation for ETI Assignment 2 EduFi Marks Entry. This API is made for Tutors to View and Update Student Marks.</h6>\n<p>Base URL: <a href=\"http://10.31.11.12:9201/api/v1/marks\">http://10.31.11.12:9201/api/v1/marks</a></p>\n<blockquote>\n<p>For POST <code>Update Specific Student Marks</code></p>\n</blockquote>\n<p>JSON Request Body Parameters</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>StudentID</td>\n<td>String</td>\n<td>Required</td>\n<td>The unique ID which identifies student  <br>(Eg. S10191234)</td>\n</tr>\n<tr>\n<td>ModuleCode</td>\n<td>String</td>\n<td>Required</td>\n<td>The unique ID for Module  <br>(Eg. CM)</td>\n</tr>\n<tr>\n<td>Marks</td>\n<td>Int</td>\n<td>Required</td>\n<td>Any amount between 0-100</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10098799","collectionId":"61ccbd58-e412-4e3b-a7a6-4a81377c6ef6","publishedId":"UVXkmuEd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-01-22T13:58:07.000Z"},"item":[{"name":"View All Student Marks","id":"d6a121b0-a250-471a-90d7-9e96654ad5cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://10.31.11.12:9201/api/v1/marks","description":"<p>View All Student Marks</p>\n","urlObject":{"protocol":"http","port":"9201","path":["api","v1","marks"],"host":["10","31","11","12"],"query":[],"variable":[]}},"response":[{"id":"3bf270b6-9bc9-442f-966a-7269bc84bc4c","name":"Default","originalRequest":{"method":"GET","header":[],"url":"http://10.31.11.12:9201/api/v1/marks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"StudentID\": \"S10191234\",\n        \"ModuleCode\": \"DB\",\n        \"Marks\": 60\n    },\n    {\n        \"StudentID\": \"S10191234\",\n        \"ModuleCode\": \"ETI\",\n        \"Marks\": 90\n    },\n    {\n        \"StudentID\": \"S10196210\",\n        \"ModuleCode\": \"CM\",\n        \"Marks\": 82\n    },\n    {\n        \"StudentID\": \"S10196210\",\n        \"ModuleCode\": \"ECAD\",\n        \"Marks\": 75\n    },\n    {\n        \"StudentID\": \"S10196210\",\n        \"ModuleCode\": \"PRG1\",\n        \"Marks\": 20\n    }\n]\n"}],"_postman_id":"d6a121b0-a250-471a-90d7-9e96654ad5cc"},{"name":"View Specific Student Marks","id":"464d884c-e543-429d-b4b4-d3f6cf025238","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://10.31.11.12:9201/api/v1/marks/1","description":"<p>View Specific Student Marks</p>\n","urlObject":{"protocol":"http","port":"9201","path":["api","v1","marks","1"],"host":["10","31","11","12"],"query":[],"variable":[]}},"response":[{"id":"d56b018a-0394-4912-950c-822320ff5fc0","name":"Default","originalRequest":{"method":"GET","header":[],"url":"http://10.31.11.12:9201/api/v1/marks/S10196210"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"StudentID\": \"S10196210\",\n        \"ModuleCode\": \"CM\",\n        \"Marks\": 82\n    },\n    {\n        \"StudentID\": \"S10196210\",\n        \"ModuleCode\": \"ECAD\",\n        \"Marks\": 75\n    },\n    {\n        \"StudentID\": \"S10196210\",\n        \"ModuleCode\": \"PRG1\",\n        \"Marks\": 20\n    }\n]\n"}],"_postman_id":"464d884c-e543-429d-b4b4-d3f6cf025238"},{"name":"Update Specific Student Marks","id":"e30cdc1b-0080-4bde-ac13-e39d4fe1e673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"StudentID\": \"S10196210\",\n    \"ModuleCode\": \"CM\",\n    \"Marks\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9201/api/v1/marks/S10196210","description":"<p>Update Specific Student Marks</p>\n","urlObject":{"protocol":"http","port":"9201","path":["api","v1","marks","S10196210"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b02d6fe7-9bf1-4a5c-925d-ec05321fedaa","name":"Default","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"StudentID\": \"S10197022\",\n    \"ModuleCode\": \"PRG1\",\n    \"Marks\": 100\n}\n","options":{"raw":{"language":"json"}}},"url":"http://10.31.11.12:9201/api/v1/marks/S10197022"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"202 - Student S10197022 PRG1's Marks updated."},{"id":"0f595f2e-1c16-4bec-b5f1-77facf04382b","name":"Missing Value in Req body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"StudentID\": \"\",\n    \"ModuleCode\": \"ECAD\",\n    \"Marks\": 90\n}","options":{"raw":{"language":"json"}}},"url":"http://10.31.11.12:9201/api/v1/marks/S10197022"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"422 - Please supply the correct student information in JSON format"},{"id":"90177358-0dd6-4dbe-8f39-174dc4be7b5b","name":"Mismatched StudentID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"StudentID\": \"S10191234\",\n    \"ModuleCode\": \"ECAD\",\n    \"Marks\": 90\n}","options":{"raw":{"language":"json"}}},"url":"http://10.31.11.12:9201/api/v1/marks/S10197022"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"422 - Please supply the correct student information in JSON format"}],"_postman_id":"e30cdc1b-0080-4bde-ac13-e39d4fe1e673"}]}