{"info":{"_postman_id":"b35cc71d-7428-4284-9baa-97bcd8985721","name":"student-api","description":"<html><head></head><body><p>StartFragment</p>\n<h2 id=\"student-management-rest-api\">Student Management REST API</h2>\n<h3 id=\"project-structure\">Project Structure</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>student-api/├── package.json├── server.js├── data/students.js└── routes/studentRoutes.js\n\n</code></pre><h3 id=\"packagejson\">package.json</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{    \"name\": \"student-api\",    \"version\": \"1.0.0\",    \"main\": \"server.js\",    \"scripts\": {        \"start\": \"node server.js\",        \"dev\": \"nodemon server.js\"    },    \"dependencies\": {        \"express\": \"^4.18.2\"    },    \"devDependencies\": {        \"nodemon\": \"^3.1.0\"    }}\n\n</code></pre><h3 id=\"serverjs\">server.js</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const express = require(\"express\");const app = express();app.use(express.json());app.use(\"/students\", require(\"./routes/    studentRoutes\"));app.get(\"/\", (req, res) =&gt; {  res.json({ message: \"Student Management     API is running\" });});app.use((req, res) =&gt; res.status(404).json({     error: \"Route not found\" }));app.listen(3002, () =&gt; console.log(\"Server     running on http://localhost:3002\"));\n\n</code></pre><h3 id=\"datastudentsjs\">data/students.js</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>module.exports = [  { id: 1,  name: \"Aarav Sharma\",  age: 22,     branch: \"CSE\",          cgpa: 9.3 },  { id: 2,  name: \"Ishita Verma\",  age: 21,     branch: \"IT\",           cgpa: 8.7 },  { id: 3,  name: \"Rohan Mehta\",   age: 20,     branch: \"ECE\",          cgpa: 7.5 },  { id: 4,  name: \"Meera Iyer\",    age: 22,     branch: \"CSE\",          cgpa: 9.1 },  { id: 5,  name: \"Arjun Patel\",   age: 21,     branch: \"AI\",           cgpa: 8.2 },  { id: 6,  name: \"Ananya Reddy\",  age: 21,     branch: \"CSE\",          cgpa: 8.7 },  { id: 7,  name: \"Vikram Singh\",  age: 20,     branch: \"Data Science\",  cgpa: 7.8 },  { id: 8,  name: \"Priya Nair\",    age: 22,     branch: \"IT\",           cgpa: 8.9 },  { id: 9,  name: \"Karthik Rao\",   age: 21,     branch: \"ECE\",          cgpa: 7.2 },  { id: 10, name: \"Neha Gupta\",    age: 21,     branch: \"CSE\",          cgpa: 7.9 },];\n\n</code></pre><h3 id=\"routesstudentroutesjs\">routes/studentRoutes.js</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const router = require(\"express\").Router();const students = require(\"../data/students\");// GET /students — All studentsrouter.get(\"/\", (req, res) =&gt; {  if (!students.length) return res.status    (404).json({ error: \"No students     found\" });  res.json(students);});// GET /students/topper — Highest CGPA     studentrouter.get(\"/topper\", (req, res) =&gt; {  if (!students.length) return res.status    (404).json({ error: \"No students     found\" });  res.json(students.reduce((top, s) =&gt; (s.    cgpa &gt; top.cgpa ? s : top), students    [0]));});// GET /students/average-cgpa — Average CGPArouter.get(\"/average-cgpa\", (req, res) =&gt; {  if (!students.length) return res.status    (404).json({ error: \"No students     found\" });  const avg = parseFloat((students.reduce    ((sum, s) =&gt; sum + s.cgpa, 0) / students.    length).toFixed(2));  res.json({ averageCGPA: avg });});// GET /students/count — Total student countrouter.get(\"/count\", (req, res) =&gt; {  res.json({ totalStudents: students.    length });});// GET /students/branch/:branchName — Filter     by branchrouter.get(\"/branch/:branchName\", (req, res)     =&gt; {  const filtered = students.filter(    (s) =&gt; s.branch.toLowerCase() === req.        params.branchName.toLowerCase()  );  if (!filtered.length) return res.status    (404).json({ error: `No students found     in branch '${req.params.branchName}'` });  res.json(filtered);});// GET /students/:id — Student by IDrouter.get(\"/:id\", (req, res) =&gt; {  if (isNaN(req.params.id)) return res.status    (400).json({ error: \"ID must be a     number\" });  const student = students.find((s) =&gt; s.id     === parseInt(req.params.id));  if (!student) return res.status(404).json    ({ error: \"Student not found\" });  res.json(student);});module.exports = router;\n\n</code></pre><h3 id=\"quick-start\">Quick Start</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>npm install &amp;&amp; npm start\n\n</code></pre><p>StartFragment</p>\n<h3 id=\"api-endpoints\">API Endpoints</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Response</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/students</code></td>\n<td>All students array</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/students/topper</code></td>\n<td>Highest CGPA student</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/students/average-cgpa</code></td>\n<td><code>{ \"averageCGPA\": 8.33 }</code></td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/students/count</code></td>\n<td><code>{ \"totalStudents\": 10 }</code></td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/students/:id</code></td>\n<td>Single student object</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/students/branch/:name</code></td>\n<td>Filtered students array</td>\n</tr>\n</tbody>\n</table>\n</div><p>EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"50839281","collectionId":"b35cc71d-7428-4284-9baa-97bcd8985721","publishedId":"2sBXcGCz69","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-24T06:51:27.000Z"},"item":[{"name":"all-student-details","id":"88511d50-d60d-407a-aeb4-9bac137a73f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/students","description":"<h2 id=\"get-all-students\">Get all students</h2>\n<p>Returns the full list of students from the Students API.</p>\n<h3 id=\"endpoint\">Endpoint</h3>\n<ul>\n<li><p><strong>Base URL:</strong> <code>http://localhost:3002</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Path:</strong> <code>/students</code></p>\n</li>\n<li><p><strong>Full URL:</strong> <code>http://localhost:3002/students</code></p>\n</li>\n</ul>\n<h3 id=\"what-it-does\">What it does</h3>\n<p>Fetches all student records and returns them as a JSON array.</p>\n<h3 id=\"expected-response\">Expected response</h3>\n<ul>\n<li><p><strong>Status:</strong> <code>200 OK</code></p>\n</li>\n<li><p><strong>Content-Type:</strong> <code>application/json</code></p>\n</li>\n</ul>\n<h4 id=\"response-schema-json\">Response schema (JSON)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"id\": 1,\n    \"name\": \"string\",\n    \"branch\": \"string\",\n    \"semester\": 1,\n    \"cgpa\": 0\n  }\n]\n\n</code></pre>\n<ul>\n<li><p><code>id</code> <em>(number)</em>: Unique student identifier</p>\n</li>\n<li><p><code>name</code> <em>(string)</em>: Student full name</p>\n</li>\n<li><p><code>branch</code> <em>(string)</em>: Department / branch (e.g., <code>CSE</code>, <code>IT</code>, <code>ECE</code>, <code>AI</code>, <code>Data Science</code>)</p>\n</li>\n<li><p><code>semester</code> <em>(number)</em>: Current semester</p>\n</li>\n<li><p><code>cgpa</code> <em>(number)</em>: CGPA (typically 0.0–10.0)</p>\n</li>\n</ul>\n<h3 id=\"sample-response\">Sample response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\"id\":1,\"name\":\"Aarav Sharma\",\"branch\":\"CSE\",\"semester\":8,\"cgpa\":9.3},\n  {\"id\":2,\"name\":\"Ishita Verma\",\"branch\":\"IT\",\"semester\":7,\"cgpa\":8.9},\n  {\"id\":3,\"name\":\"Rohan Kulkarni\",\"branch\":\"ECE\",\"semester\":6,\"cgpa\":8.4},\n  {\"id\":4,\"name\":\"Meera Iyer\",\"branch\":\"CSE\",\"semester\":8,\"cgpa\":9.1},\n  {\"id\":5,\"name\":\"Kunal Deshmukh\",\"branch\":\"IT\",\"semester\":5,\"cgpa\":7.8},\n  {\"id\":6,\"name\":\"Ananya Reddy\",\"branch\":\"CSE\",\"semester\":6,\"cgpa\":8.7},\n  {\"id\":7,\"name\":\"Vikram Patil\",\"branch\":\"ECE\",\"semester\":7,\"cgpa\":8.2},\n  {\"id\":8,\"name\":\"Priyanka Nair\",\"branch\":\"AI\",\"semester\":4,\"cgpa\":8.8},\n  {\"id\":9,\"name\":\"Harsh Mehta\",\"branch\":\"Data Science\",\"semester\":5,\"cgpa\":8},\n  {\"id\":10,\"name\":\"Neha Gupta\",\"branch\":\"CSE\",\"semester\":6,\"cgpa\":7.9}\n]\n\n</code></pre>\n<h3 id=\"common-use-cases\">Common use cases</h3>\n<ul>\n<li><p>Populate a UI table/list of all students</p>\n</li>\n<li><p>Initial data load for dashboards/analytics</p>\n</li>\n<li><p>Validate that the service/database contains expected seed data</p>\n</li>\n<li><p>Smoke test for API availability</p>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible errors</h3>\n<blockquote>\n<p>Exact error payloads depend on your backend implementation. </p>\n</blockquote>\n<ul>\n<li><p><strong><code>500 Internal Server Error</code></strong>: Server-side failure while reading students</p>\n</li>\n<li><p><strong><code>503 Service Unavailable</code></strong>: Server not running / dependency unavailable</p>\n</li>\n<li><p><strong><code>404 Not Found</code></strong>: Route not registered (or incorrect base URL/port)</p>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li>If the server is running on a different host/port, update the base URL accordingly.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3002","path":["students"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e6ec18e8-674a-4dea-af1d-a5cef2198bd1","name":"all-student-details","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/students"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"706"},{"key":"ETag","value":"W/\"2c2-eg8a8aTavyPAgNHP/P5m4llaFTk\""},{"key":"Date","value":"Tue, 24 Feb 2026 06:19:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Aarav Sharma\",\n        \"branch\": \"CSE\",\n        \"semester\": 8,\n        \"cgpa\": 9.3\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Ishita Verma\",\n        \"branch\": \"IT\",\n        \"semester\": 7,\n        \"cgpa\": 8.9\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Rohan Kulkarni\",\n        \"branch\": \"ECE\",\n        \"semester\": 6,\n        \"cgpa\": 8.4\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Meera Iyer\",\n        \"branch\": \"CSE\",\n        \"semester\": 8,\n        \"cgpa\": 9.1\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Kunal Deshmukh\",\n        \"branch\": \"IT\",\n        \"semester\": 5,\n        \"cgpa\": 7.8\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Ananya Reddy\",\n        \"branch\": \"CSE\",\n        \"semester\": 6,\n        \"cgpa\": 8.7\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Vikram Patil\",\n        \"branch\": \"ECE\",\n        \"semester\": 7,\n        \"cgpa\": 8.2\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Priyanka Nair\",\n        \"branch\": \"AI\",\n        \"semester\": 4,\n        \"cgpa\": 8.8\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Harsh Mehta\",\n        \"branch\": \"Data Science\",\n        \"semester\": 5,\n        \"cgpa\": 8\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Neha Gupta\",\n        \"branch\": \"CSE\",\n        \"semester\": 6,\n        \"cgpa\": 7.9\n    }\n]"}],"_postman_id":"88511d50-d60d-407a-aeb4-9bac137a73f6"},{"name":"topper-student-only","id":"6fdf0299-4524-4b10-a68c-24273710552f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/students/topper","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Fetch the <strong>top-performing student</strong> (the “topper”) from the Students API.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<ul>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>URL:</strong> <code>http://localhost:3002/students/topper</code></li>\n</ul>\n<blockquote>\n<p><strong>Base URL note:</strong> This request targets a local server (<code>localhost</code>). Make sure your API is running on <code>http://localhost:3002</code> before sending the request.</p>\n</blockquote>\n<h2 id=\"response-200-ok\">Response (200 OK)</h2>\n<p>Example response body (from the last successful run):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 1,\n  \"name\": \"Aarav Sharma\",\n  \"branch\": \"CSE\",\n  \"semester\": 8,\n  \"cgpa\": 9.3\n}\n</code></pre>\n<h2 id=\"basic-test-notes\">Basic test notes</h2>\n<p>Recommended checks for this endpoint:</p>\n<ul>\n<li>Assert <strong>status code</strong> is <code>200</code>.</li>\n<li>Assert response is <strong>JSON</strong>.</li>\n<li>Assert required fields exist: <code>id</code>, <code>name</code>, <code>branch</code>, <code>semester</code>, <code>cgpa</code>.</li>\n<li>Assert <code>cgpa</code> is a <strong>number</strong> and is present (optionally validate it’s within an expected range, e.g., <code>0</code>–<code>10</code>).</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3002","path":["students","topper"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"42691190-1f1f-4ed7-80bd-4778395f3230","name":"topper-student-only","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/students/topper"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-Zt+hMq9DFzGEG2U2YFMym5i2hhM\""},{"key":"Date","value":"Tue, 24 Feb 2026 06:19:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Aarav Sharma\",\n    \"branch\": \"CSE\",\n    \"semester\": 8,\n    \"cgpa\": 9.3\n}"}],"_postman_id":"6fdf0299-4524-4b10-a68c-24273710552f"},{"name":"average-cgpa-of-students","id":"18e35db9-182c-4703-955b-928ca008ac95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<h2 id=\"get-average-cgpa\">Get Average CGPA</h2>\n<p>Returns the average CGPA across all students.</p>\n<h3 id=\"endpoint\">Endpoint</h3>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:3002/students/average</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<h4 id=\"success-200\">Success (200)</h4>\n<p>Returns a JSON object containing the computed average CGPA.</p>\n<p><strong>Schema</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"averageCGPA\": number\n}\n\n</code></pre>\n<p><strong>Example</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"averageCGPA\": 8.51\n}\n\n</code></pre>\n<h3 id=\"possible-error-responses\">Possible error responses</h3>\n<blockquote>\n<p>Exact error payloads depend on your server implementation. </p>\n</blockquote>\n<ul>\n<li><p><strong>500 Internal Server Error</strong> – Server-side error while calculating the average (e.g., database/query failure).</p>\n</li>\n<li><p><strong>404 Not Found</strong> – If the route is not registered on the server.</p>\n</li>\n<li><p><strong>503 Service Unavailable / Connection error</strong> – If the server is not running or not reachable.</p>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure your backend server is running and reachable at <strong><code>http://localhost:3002</code></strong>.</p>\n</li>\n<li><p>This endpoint does not require a request body.</p>\n</li>\n</ul>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"9f033e5f-639c-42eb-b98d-2346f3d67354","name":"average-cgpa-of-students","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/students/average"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"20"},{"key":"ETag","value":"W/\"14-eXAdQlJ0QC/O0FoKBN226pkONG0\""},{"key":"Date","value":"Tue, 24 Feb 2026 06:19:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"averageCGPA\": 8.51\n}"}],"_postman_id":"18e35db9-182c-4703-955b-928ca008ac95"},{"name":"total-students","id":"6c7a802e-bd45-4d1d-81da-0c758d3ea69b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/students/count","description":"<h2 id=\"overview\">Overview</h2>\n<p>Returns the total number of students available in the system.</p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>URL:</strong> <code>http://localhost:3002/students/count</code></li>\n</ul>\n<h2 id=\"successful-response\">Successful Response</h2>\n<h3 id=\"200-ok\"><code>200 OK</code></h3>\n<p>Returns a JSON object containing the total student count.</p>\n<p><strong>Schema</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"totalstudents\": number\n}\n</code></pre>\n<p><strong>Example</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"totalstudents\": 10\n}\n</code></pre>\n<h2 id=\"notes--common-issues\">Notes / Common issues</h2>\n<ul>\n<li>Ensure the API server is running and reachable at <code>localhost:3002</code>.</li>\n<li>If the server is not running or the port is incorrect, you may see connection errors (for example <code>ECONNREFUSED</code>) or a <code>404 Not Found</code> depending on your setup.</li>\n<li>If your server is hosted elsewhere, update the base URL accordingly (e.g., by using an environment variable).</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3002","path":["students","count"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1be21962-eb02-40b0-b4d5-155acc1ff509","name":"total-students","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/students/count"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"20"},{"key":"ETag","value":"W/\"14-3HG0j8M+thu3az/qW7y8bSEON0s\""},{"key":"Date","value":"Tue, 24 Feb 2026 06:20:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalstudents\": 10\n}"}],"_postman_id":"6c7a802e-bd45-4d1d-81da-0c758d3ea69b"},{"name":"get-student-details-by-id","id":"620b823b-27d2-46ce-bcee-fa342a049d43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/students/1","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Retrieve a single student record by <strong>ID</strong>.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p><code>GET http://localhost:3002/students/:id</code></p>\n<h2 id=\"path-parameters\">Path parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>The student ID to fetch.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"success-response-200-ok\">Success response (200 OK)</h2>\n<p><strong>Example response body</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"id\":1,\"name\":\"Aarav Sharma\",\"branch\":\"CSE\",\"semester\":8,\"cgpa\":9.3}\n</code></pre>\n<h2 id=\"possible-errors\">Possible errors</h2>\n<ul>\n<li><strong>400 Bad Request</strong> — Invalid <code>id</code> (e.g., non-numeric or out of allowed range).</li>\n<li><strong>404 Not Found</strong> — No student exists for the given <code>id</code>.</li>\n<li><strong>500 Internal Server Error</strong> — Unexpected server error.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3002","path":["students","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"40bf667f-6a7c-4201-b819-ef70b3f885fa","name":"get-student-details-by-id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/students/1"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-Zt+hMq9DFzGEG2U2YFMym5i2hhM\""},{"key":"Date","value":"Tue, 24 Feb 2026 06:20:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Aarav Sharma\",\n    \"branch\": \"CSE\",\n    \"semester\": 8,\n    \"cgpa\": 9.3\n}"}],"_postman_id":"620b823b-27d2-46ce-bcee-fa342a049d43"},{"name":"get-student-by-branch-name","id":"2e4dc80f-2640-4f55-841a-955605c7510d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/students/branch/cse","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Fetch all students filtered by branch (CSE).</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<ul>\n<li><strong>Method:</strong> <code>GET</code></li>\n<li><strong>URL:</strong> <code>http://localhost:3002/students/branch/cse</code></li>\n<li><strong>Path:</strong> <code>/students/branch/cse</code></li>\n</ul>\n<h2 id=\"sample-200-response\">Sample 200 Response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\"id\": 1, \"name\": \"Aarav Sharma\", \"branch\": \"CSE\", \"semester\": 8, \"cgpa\": 9.3},\n  {\"id\": 4, \"name\": \"Meera Iyer\", \"branch\": \"CSE\", \"semester\": 8, \"cgpa\": 9.1},\n  {\"id\": 6, \"name\": \"Ananya Reddy\", \"branch\": \"CSE\", \"semester\": 6, \"cgpa\": 8.7},\n  {\"id\": 10, \"name\": \"Neha Gupta\", \"branch\": \"CSE\", \"semester\": 6, \"cgpa\": 7.9}\n]\n</code></pre>\n<h2 id=\"notes-filtering-by-branch\">Notes (Filtering by branch)</h2>\n<ul>\n<li>This request returns only students in the <strong>CSE</strong> branch.</li>\n<li>The branch filter is encoded in the path segment <code>cse</code> (i.e., <code>/students/branch/{branch}</code>).</li>\n<li>To filter for a different branch, replace <code>cse</code> with the desired branch value (case sensitivity depends on the backend implementation).</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3002","path":["students","branch","cse"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"13b953e2-e9eb-4394-ac5b-4dda60dec4a6","name":"get-student-by-branch-name","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/students/branch/cse"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-7pw088gxBxBRgBpYjICy+5DVdWA\""},{"key":"Date","value":"Tue, 24 Feb 2026 06:20:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Aarav Sharma\",\n        \"branch\": \"CSE\",\n        \"semester\": 8,\n        \"cgpa\": 9.3\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Meera Iyer\",\n        \"branch\": \"CSE\",\n        \"semester\": 8,\n        \"cgpa\": 9.1\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Ananya Reddy\",\n        \"branch\": \"CSE\",\n        \"semester\": 6,\n        \"cgpa\": 8.7\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Neha Gupta\",\n        \"branch\": \"CSE\",\n        \"semester\": 6,\n        \"cgpa\": 7.9\n    }\n]"}],"_postman_id":"2e4dc80f-2640-4f55-841a-955605c7510d"}]}