{"info":{"_postman_id":"8742e138-011c-4e18-a625-c5415be7a622","name":"assignment-1","description":"<html><head></head><body><h2 id=\"assignment-1--collection-documentation\">assignment-1 — Collection Documentation</h2>\n<h3 id=\"purpose\">Purpose</h3>\n<p>This collection contains a small set of <strong>read-only</strong> endpoints for working with a <em>Students</em> dataset (list students, aggregate stats like count/average CGPA, and filtered queries such as topper / by id / by branch).</p>\n<h3 id=\"authentication\">Authentication</h3>\n<p>No authentication is configured at the collection level.</p>\n<h3 id=\"base-url\">Base URL</h3>\n<p>All requests currently use the same host:</p>\n<ul>\n<li><code>https://node-assignment-1-f80h.onrender.com</code></li>\n</ul>\n<p><strong>Suggested variable (optional)</strong><br>If you want to make the collection easier to move between environments, you can create a collection/environment variable:</p>\n<ul>\n<li><code>baseUrl = https://node-assignment-1-f80h.onrender.com</code></li>\n</ul>\n<p>…and then update request URLs to use <code>{{baseUrl}}/...</code>.</p>\n<h3 id=\"collection-level-scripts\">Collection-level scripts</h3>\n<ul>\n<li><p>Pre-request script: none</p>\n</li>\n<li><p>Tests: none</p>\n</li>\n</ul>\n<hr>\n<h2 id=\"requests\">Requests</h2>\n<h3 id=\"1-get-all-students\">1) get all students</h3>\n<p><strong>Method:</strong> <code>GET</code><br><strong>URL:</strong> <code>https://node-assignment-1-f80h.onrender.com/students</code></p>\n<p><strong>Query params:</strong> none<br><strong>Headers:</strong> none<br><strong>Body:</strong> none</p>\n<p><strong>Saved examples:</strong></p>\n<ul>\n<li><code>Example - Success (placeholder)</code> (200 OK)</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"students\": [\n      {\n        \"id\": 1,\n        \"name\": \"Student Name\",\n        \"branch\": \"CSE\",\n        \"cgpa\": 9.1\n      }\n    ]\n  }\n}\n\n</code></pre>\n<p><strong>Request scripts/tests:</strong> none</p>\n<hr>\n<h3 id=\"2-get-topper\">2) get topper</h3>\n<p><strong>Method:</strong> <code>GET</code><br><strong>URL:</strong> <code>https://node-assignment-1-f80h.onrender.com/students/topper</code></p>\n<p><strong>Query params:</strong> none<br><strong>Headers:</strong> none<br><strong>Body:</strong> none</p>\n<p><strong>Saved examples:</strong></p>\n<ul>\n<li><code>Example - Success (placeholder)</code> (200 OK)</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"topper\": {\n      \"id\": 1,\n      \"name\": \"Student Name\",\n      \"branch\": \"CSE\",\n      \"cgpa\": 9.9\n    }\n  }\n}\n\n</code></pre>\n<p><strong>Request scripts/tests:</strong> none</p>\n<hr>\n<h3 id=\"3-total-students\">3) total students</h3>\n<p><strong>Method:</strong> <code>GET</code><br><strong>URL:</strong> <code>https://node-assignment-1-f80h.onrender.com/students/count</code></p>\n<p><strong>Query params:</strong> none<br><strong>Headers:</strong> none<br><strong>Body:</strong> none</p>\n<p><strong>Saved examples:</strong></p>\n<ul>\n<li><code>Example - Success (placeholder)</code> (200 OK)</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"count\": 42\n  }\n}\n\n</code></pre>\n<p><strong>Request scripts/tests:</strong> none</p>\n<hr>\n<h3 id=\"4-get-average-of-cgpa\">4) get average of CGPA</h3>\n<p><strong>Method:</strong> <code>GET</code><br><strong>URL:</strong> <code>https://node-assignment-1-f80h.onrender.com/students/average</code></p>\n<p><strong>Query params:</strong> none<br><strong>Headers:</strong> none<br><strong>Body:</strong> none</p>\n<p><strong>Saved examples:</strong></p>\n<ul>\n<li><code>Example - Success (placeholder)</code> (200 OK)</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"averageCgpa\": 8.45\n  }\n}\n\n</code></pre>\n<p><strong>Request scripts/tests:</strong> none</p>\n<hr>\n<h3 id=\"5-get-students-by-id\">5) get students by id</h3>\n<p><strong>Method:</strong> <code>GET</code><br><strong>URL:</strong> <code>https://node-assignment-1-f80h.onrender.com/students/1</code></p>\n<p><strong>Path params (as used in this request):</strong></p>\n<ul>\n<li><code>id = 1</code></li>\n</ul>\n<p><strong>Query params:</strong> none<br><strong>Headers:</strong> none<br><strong>Body:</strong> none</p>\n<p><strong>Saved examples:</strong></p>\n<ul>\n<li><code>Example - Success (placeholder)</code> (200 OK)</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"student\": {\n      \"id\": 1,\n      \"name\": \"Student Name\",\n      \"branch\": \"CSE\",\n      \"cgpa\": 9.1\n    }\n  }\n}\n\n</code></pre>\n<p><strong>Request scripts/tests:</strong> none</p>\n<hr>\n<h3 id=\"6-get-students-by-branchname\">6) get students by branchname</h3>\n<p><strong>Method:</strong> <code>GET</code><br><strong>URL:</strong> <code>https://node-assignment-1-f80h.onrender.com/students/branch/CSE</code></p>\n<p><strong>Path params (as used in this request):</strong></p>\n<ul>\n<li><code>branchname = CSE</code></li>\n</ul>\n<p><strong>Query params:</strong> none<br><strong>Headers:</strong> none<br><strong>Body:</strong> none</p>\n<p><strong>Saved examples:</strong></p>\n<ul>\n<li><code>Example - Success (placeholder)</code> (200 OK)</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"students\": [\n      {\n        \"id\": 2,\n        \"name\": \"Student Name\",\n        \"branch\": \"CSE\",\n        \"cgpa\": 8.7\n      }\n    ]\n  }\n}\n\n</code></pre>\n<p><strong>Request scripts/tests:</strong> none</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"50839299","collectionId":"8742e138-011c-4e18-a625-c5415be7a622","publishedId":"2sBXcGCyrx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-24T05:01:46.000Z"},"item":[{"name":"get all students","id":"9d06f2a4-5535-4c3a-bf49-f9a07909ab5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students","urlObject":{"protocol":"https","path":["students"],"host":["node-assignment-1-f80h","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"15c45a62-b0c1-49c7-aa2c-06ba2d8904f8","name":"Example - Success (placeholder)","originalRequest":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"students\": [\n      {\n        \"id\": 1,\n        \"name\": \"Student Name\",\n        \"branch\": \"CSE\",\n        \"cgpa\": 9.1\n      }\n    ]\n  }\n}"}],"_postman_id":"9d06f2a4-5535-4c3a-bf49-f9a07909ab5d"},{"name":"get topper","id":"bb8895a8-849f-480f-bbab-ca4930286a9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/topper","urlObject":{"protocol":"https","path":["students","topper"],"host":["node-assignment-1-f80h","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"7173e38f-ce9f-4e2e-a377-12130883533d","name":"Example - Success (placeholder)","originalRequest":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/topper"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"topper\": {\n      \"id\": 1,\n      \"name\": \"Student Name\",\n      \"branch\": \"CSE\",\n      \"cgpa\": 9.9\n    }\n  }\n}"}],"_postman_id":"bb8895a8-849f-480f-bbab-ca4930286a9a"},{"name":"total students","id":"d30ac713-76ba-40a8-9f67-b645053b359b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/count","urlObject":{"protocol":"https","path":["students","count"],"host":["node-assignment-1-f80h","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"0dbc48fc-89e6-4a94-8d8b-50151d6dacc8","name":"Example - Success (placeholder)","originalRequest":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"count\": 42\n  }\n}"}],"_postman_id":"d30ac713-76ba-40a8-9f67-b645053b359b"},{"name":"get average of CGPA","id":"7ef2873e-96e7-41bb-aff6-f1ae3d606d91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/average","urlObject":{"protocol":"https","path":["students","average"],"host":["node-assignment-1-f80h","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"dc91b19a-a8a0-4676-844e-87063b35954c","name":"Example - Success (placeholder)","originalRequest":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/average"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"averageCgpa\": 8.45\n  }\n}"}],"_postman_id":"7ef2873e-96e7-41bb-aff6-f1ae3d606d91"},{"name":"get students by id","id":"fc1bb33a-d33f-4d52-b71d-8e7d759de608","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/1","urlObject":{"protocol":"https","path":["students","1"],"host":["node-assignment-1-f80h","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"45f56cfe-c3db-4651-aa59-75cc2dd86048","name":"Example - Success (placeholder)","originalRequest":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"student\": {\n      \"id\": 1,\n      \"name\": \"Student Name\",\n      \"branch\": \"CSE\",\n      \"cgpa\": 9.1\n    }\n  }\n}"}],"_postman_id":"fc1bb33a-d33f-4d52-b71d-8e7d759de608"},{"name":"get students by branchname","id":"a87f9f40-5368-4232-bd11-709f4cf6e437","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/branch/CSE","urlObject":{"protocol":"https","path":["students","branch","CSE"],"host":["node-assignment-1-f80h","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"f61b8355-8261-49ec-998c-98e98ede9a55","name":"Example - Success (placeholder)","originalRequest":{"method":"GET","header":[],"url":"https://node-assignment-1-f80h.onrender.com/students/branch/CSE"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"note\": \"No examples were saved in the collection at documentation time.\",\n  \"example\": {\n    \"students\": [\n      {\n        \"id\": 2,\n        \"name\": \"Student Name\",\n        \"branch\": \"CSE\",\n        \"cgpa\": 8.7\n      }\n    ]\n  }\n}"}],"_postman_id":"a87f9f40-5368-4232-bd11-709f4cf6e437"}]}