{"info":{"_postman_id":"f235f614-2754-4785-84d8-4dd9c6cb9b9a","name":"School Management","description":"<html><head></head><body><p>APIs designed to simplify school operations by managing student records, classes, and staff information. Ideal for building applications that enhance administration and improve the learning experience.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29778371","collectionId":"f235f614-2754-4785-84d8-4dd9c6cb9b9a","publishedId":"2sAYBbf9xG","public":true,"customColor":{"top-bar":"FeF3E2","right-sidebar":"FAB12F","highlight":"FF6C37"},"publishDate":"2024-12-07T18:25:21.000Z"},"item":[{"name":"Get Students","id":"c8df7d90-48c2-4233-9311-de505b9fc911","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-school2}}/students","description":"<p>The endpoint makes an HTTP GET request to retrieve a list of students from the school. The response for this request is a JSON array containing objects with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"_id\": \"string\",\n  \"name\": \"string\",\n  \"age\": \"number\",\n  \"gender\": \"string\",\n  \"marks\": \"number\",\n  \"attendance\": \"array\",\n  \"grade\": \"string\",\n  \"__v\": \"number\"\n}\n\n</code></pre>\n","urlObject":{"path":["students"],"host":["{{host-school2}}"],"query":[],"variable":[]}},"response":[{"id":"8dbec330-371c-44a1-88f5-bf5b8e6f3bea","name":"Get Students","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"122"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 17:52:48 GMT"},{"key":"Etag","value":"W/\"7a-kfDz880FbfQmkDz2YZaEws8+opw\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6654c859f8545574da7dad4b\",\n        \"name\": \"Ram\",\n        \"age\": 13,\n        \"gender\": \"Male\",\n        \"marks\": 450,\n        \"attendance\": [],\n        \"grade\": \"9\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"c8df7d90-48c2-4233-9311-de505b9fc911"},{"name":"Create Student","id":"1578a36d-7099-44fc-9d91-28e01961b513","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" :\"Ram\",\n    \"age\" :\"13\",\n    \"grade\": \"9\",\n    \"gender\":\"Male\",\n    \"marks\":\"450\",\n    \"attendance\":\"Present\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students","description":"<p>The POST request to <code>/students</code> endpoint is used to add a new student to the school database. The request should include the student's name, age, grade, gender, marks, and attendance.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>name</code>: (string) The name of the student.</p>\n</li>\n<li><p><code>age</code>: (string) The age of the student.</p>\n</li>\n<li><p><code>grade</code>: (string) The grade/class of the student.</p>\n</li>\n<li><p><code>gender</code>: (string) The gender of the student.</p>\n</li>\n<li><p><code>marks</code>: (string) The marks obtained by the student.</p>\n</li>\n<li><p><code>attendance</code>: (string) The attendance status of the student.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"\",\n  \"age\": 0,\n  \"gender\": \"\",\n  \"marks\": 0,\n  \"attendance\": [],\n  \"grade\": \"\",\n  \"_id\": \"\",\n  \"__v\": 0\n}\n\n</code></pre>\n<p>The response includes the student's details such as name, age, gender, marks, attendance, grade, and other system-generated fields like <code>_id</code> and <code>__v</code>. The fields <code>name</code>, <code>gender</code>, and <code>grade</code> are of type string, <code>age</code> and <code>marks</code> are of type number, <code>attendance</code> is an array, and <code>_id</code> and <code>__v</code> are system-generated fields.</p>\n","urlObject":{"path":["students"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"91519a63-72f7-4256-aee9-c3a3512d0b83","name":"Create Student","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" :\"Ram\",\n    \"age\" :\"13\",\n    \"grade\": \"9\",\n    \"gender\":\"Male\",\n    \"marks\":\"450\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"120"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 17:52:25 GMT"},{"key":"Etag","value":"W/\"78-qzBZxpd7nLUXf7DWzqjIXkf5XaM\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Ram\",\n    \"age\": 13,\n    \"gender\": \"Male\",\n    \"marks\": 450,\n    \"attendance\": [],\n    \"grade\": \"9\",\n    \"_id\": \"6654c859f8545574da7dad4b\",\n    \"__v\": 0\n}"}],"_postman_id":"1578a36d-7099-44fc-9d91-28e01961b513"},{"name":"Add attendance","id":"dac825f8-bbfc-47c8-9554-d7842defde76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance\" :{\n        \"status\" : \"Present\",\n        \"date\":\"2024-05-27\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b","description":"<p>The endpoint updates the attendance of a specific student with the given ID. The request should be a PUT method to the endpoint \"{{host-school}}/students/6654c859f8545574da7dad4b\" with the following payload in raw request body type:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"attendance\": {\n    \"status\": \"Present\",\n    \"date\": \"2024-05-27\"\n  }\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"age\": 0,\n  \"gender\": \"\",\n  \"marks\": 0,\n  \"attendance\": [\n    {\n      \"status\": \"\",\n      \"date\": \"\",\n      \"_id\": \"\"\n    }\n  ],\n  \"grade\": \"\",\n  \"__v\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["students","6654c859f8545574da7dad4b"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"c4ee59ba-78b7-4442-bbbf-3f29dd2a0a7c","name":"Add attendance","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance\" :{\n        \"status\" : \"Present\",\n        \"date\":\"2024-05-27\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"207"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:02:24 GMT"},{"key":"Etag","value":"W/\"cf-eZDqtuc9splNhp/5u+3X25Jw9xo\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6654c859f8545574da7dad4b\",\n    \"name\": \"Ram\",\n    \"age\": 13,\n    \"gender\": \"Male\",\n    \"marks\": 450,\n    \"attendance\": [\n        {\n            \"status\": \"Present\",\n            \"date\": \"2024-05-27T00:00:00.000Z\",\n            \"_id\": \"6654cab0f8545574da7dad4e\"\n        }\n    ],\n    \"grade\": \"9\",\n    \"__v\": 0\n}"}],"_postman_id":"dac825f8-bbfc-47c8-9554-d7842defde76"},{"name":"Update student","id":"e88221f2-7048-42d7-8809-d92508276780","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Raghav\",\n    \"age\" :\"14\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b","description":"<h3 id=\"update-student-details\">Update Student Details</h3>\n<p>This endpoint is used to update the details of a specific student.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>The request body should be in raw format with the following parameters:</p>\n<ul>\n<li><p><code>name</code> (string, required): The updated name of the student.</p>\n</li>\n<li><p><code>age</code> (number, required): The updated age of the student.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Updated Name\",\n  \"age\": 15\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"age\": 0,\n  \"gender\": \"\",\n  \"marks\": 0,\n  \"attendance\": [\n    {\n      \"status\": \"\",\n      \"date\": \"\",\n      \"_id\": \"\"\n    }\n  ],\n  \"grade\": \"\",\n  \"__v\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["students","6654c859f8545574da7dad4b"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"571d2ac1-d6bc-47e5-9267-a4515695b182","name":"Add attendance","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance\" :{\n        \"status\" : \"Present\",\n        \"date\":\"2024-05-27\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","uuid":"2e912a44-a30e-4d77-bbff-cb50bfa14a7f"},{"key":"Content-Length","value":"207","uuid":"ab5657d9-3475-407c-9b85-ecfc45644b19"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"e1bb5bd2-f85f-4606-bea7-3d767340af70"},{"key":"Date","value":"Mon, 27 May 2024 18:02:24 GMT","uuid":"55d892cf-8c65-4126-af01-930085fd6635"},{"key":"Etag","value":"W/\"cf-eZDqtuc9splNhp/5u+3X25Jw9xo\"","uuid":"75c2cebe-0877-49cd-8b91-583145d5f8f3"},{"key":"Replit-Cluster","value":"picard","uuid":"6af04a07-5849-4f96-ad22-0e0ad9edf3df"},{"key":"X-Powered-By","value":"Express","uuid":"d63bc0c5-def7-4145-8edc-cc09ad423043"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"643a5c19-8d03-474d-9eb9-733a03092025"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"643a5c19-8d03-474d-9eb9-733a03092025"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6654c859f8545574da7dad4b\",\n    \"name\": \"Ram\",\n    \"age\": 13,\n    \"gender\": \"Male\",\n    \"marks\": 450,\n    \"attendance\": [\n        {\n            \"status\": \"Present\",\n            \"date\": \"2024-05-27T00:00:00.000Z\",\n            \"_id\": \"6654cab0f8545574da7dad4e\"\n        }\n    ],\n    \"grade\": \"9\",\n    \"__v\": 0\n}"},{"id":"579abd7f-e461-4b32-a798-d03110e1ab10","name":"Update student","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Raghav\",\n    \"age\" :\"14\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"210"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:04:24 GMT"},{"key":"Etag","value":"W/\"d2-dHOobq7P1/BEHCFIlIqlACQ96gc\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6654c859f8545574da7dad4b\",\n    \"name\": \"Raghav\",\n    \"age\": 14,\n    \"gender\": \"Male\",\n    \"marks\": 450,\n    \"attendance\": [\n        {\n            \"status\": \"Present\",\n            \"date\": \"2024-05-27T00:00:00.000Z\",\n            \"_id\": \"6654cab0f8545574da7dad4e\"\n        }\n    ],\n    \"grade\": \"9\",\n    \"__v\": 0\n}"}],"_postman_id":"e88221f2-7048-42d7-8809-d92508276780"},{"name":"Delete Student","id":"2163eee0-e82f-4b24-b893-68622dd7c785","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host-school}}/students/6654cb51f8545574da7dad53","description":"<p>The HTTP DELETE request is used to delete a specific student with the given ID from the school database.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>message</code> (string): A message indicating the outcome of the deletion process.</p>\n</li>\n<li><p><code>student</code> (object): An object containing the details of the deleted student.</p>\n<ul>\n<li><p><code>_id</code> (string): The unique identifier of the student.</p>\n</li>\n<li><p><code>name</code> (string): The name of the student.</p>\n</li>\n<li><p><code>age</code> (number): The age of the student.</p>\n</li>\n<li><p><code>gender</code> (string): The gender of the student.</p>\n</li>\n<li><p><code>marks</code> (number): The marks obtained by the student.</p>\n</li>\n<li><p><code>attendance</code> (array): An array containing the attendance records of the student.</p>\n</li>\n<li><p><code>grade</code> (string): The grade of the student.</p>\n</li>\n<li><p><code>__v</code> (number): Version control field.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>This response can be used as a JSON schema to understand the structure of the data returned after deleting a student from the database.</p>\n","urlObject":{"path":["students","6654cb51f8545574da7dad53"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"ac7b4aa1-4682-4597-87fe-ee168a3e7923","name":"Delete Student","originalRequest":{"method":"DELETE","header":[],"url":"{{host-school}}/students/6654cb51f8545574da7dad53"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:11:01 GMT"},{"key":"Etag","value":"W/\"ad-Ogzx32TV8GStNG76zh8F+vkQJcQ\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Student deleted successfully\",\n    \"student\": {\n        \"_id\": \"6654cb51f8545574da7dad53\",\n        \"name\": \"Ram\",\n        \"age\": 13,\n        \"gender\": \"Male\",\n        \"marks\": 450,\n        \"attendance\": [],\n        \"grade\": \"9\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"2163eee0-e82f-4b24-b893-68622dd7c785"},{"name":"Get Student By Id","id":"b400262d-33e9-4929-ad24-581c8d97b518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-school}}/students/6654c859f8545574da7dad4b","description":"<p>The endpoint retrieves information about a specific student identified by their unique ID. The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": { \"type\": \"string\" },\n    \"student\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"_id\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" },\n        \"age\": { \"type\": \"integer\" },\n        \"gender\": { \"type\": \"string\" },\n        \"marks\": { \"type\": \"integer\" },\n        \"attendance\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"status\": { \"type\": \"string\" },\n              \"date\": { \"type\": \"string\" },\n              \"_id\": { \"type\": \"string\" }\n            }\n          }\n        },\n        \"grade\": { \"type\": \"string\" },\n        \"__v\": { \"type\": \"integer\" }\n      }\n    }\n  }\n}\n</code></pre>\n","urlObject":{"path":["students","6654c859f8545574da7dad4b"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"909c32b8-a33a-4f54-8188-f15b4ca33224","name":"Get Student By Id","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/students/6654c859f8545574da7dad4f"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"248"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:17:45 GMT"},{"key":"Etag","value":"W/\"f8-M9PdapCdd+OmMpOudp/bLqWcZ9w\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Student found\",\n    \"student\": {\n        \"_id\": \"6654c859f8545574da7dad4b\",\n        \"name\": \"Raghav\",\n        \"age\": 14,\n        \"gender\": \"Male\",\n        \"marks\": 450,\n        \"attendance\": [\n            {\n                \"status\": \"Present\",\n                \"date\": \"2024-05-27T00:00:00.000Z\",\n                \"_id\": \"6654cab0f8545574da7dad4e\"\n            }\n        ],\n        \"grade\": \"9\",\n        \"__v\": 0\n    }\n}"},{"id":"83db606a-65c3-4449-ae27-5887abff9f76","name":"Get Student By Id","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/students/6654c859f8545574da7dad4f"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:18:20 GMT"},{"key":"Etag","value":"W/\"1f-LU9H1tMP71GW4rOZhbj+Fk6EQVY\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Student not found\"\n}"}],"_postman_id":"b400262d-33e9-4929-ad24-581c8d97b518"},{"name":"Get Teachers","id":"8fd762da-c25e-47a2-a578-1a9649689419","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-school}}/teachers","description":"<p>This endpoint sends an HTTP GET request to retrieve a list of teachers from the specified host. Below is the JSON schema for the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"array\",\n  \"items\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"contactInformation\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"email\": { \"type\": \"string\" },\n          \"phoneNumber\": { \"type\": \"string\" }\n        }\n      },\n      \"_id\": { \"type\": \"string\" },\n      \"name\": { \"type\": \"string\" },\n      \"subject\": { \"type\": \"string\" },\n      \"__v\": { \"type\": \"number\" }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["teachers"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"89fdfaa8-ddfd-449e-9cad-78294aa1d418","name":"Get Teachers","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/teachers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"2"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:32:07 GMT"},{"key":"Etag","value":"W/\"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"606a345f-9346-402f-94c8-2bfb81422155","name":"Get Teachers","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/teachers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"171"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:51:11 GMT"},{"key":"Etag","value":"W/\"ab-Z4IdIaeaXflotM6d/eW5jQyCtDA\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"contactInformation\": {\n            \"email\": \"ekamavsecretary@gmail.com\",\n            \"phoneNumber\": \"9875736212\"\n        },\n        \"_id\": \"6654d38534cbe05c1b4017e0\",\n        \"name\": \"Atmaram Bhide\",\n        \"subject\": \"Maths\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"8fd762da-c25e-47a2-a578-1a9649689419"},{"name":"Create Teacher","id":"3e7aeb35-fad8-410e-8365-2cfed41e9544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" :\"Atmaram Bhide\",\n    \"subject\":\"Maths\",\n    \"contactInformation\": {\n        \"email\" : \"ekamavsecretary@gmail.com\",\n        \"phoneNumber\" :\"9875736212\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/teachers","description":"<p>The endpoint makes an HTTP POST request to {{host-school}}/teachers to add a new teacher. The request payload should be in raw JSON format and include the teacher's name, subject, and contact information with email and phone number.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>name (string, required): The name of the teacher.</p>\n</li>\n<li><p>subject (string, required): The subject taught by the teacher.</p>\n</li>\n<li><p>contactInformation (object, required): The contact information of the teacher.</p>\n<ul>\n<li><p>email (string, required): The email address of the teacher.</p>\n</li>\n<li><p>phoneNumber (string, required): The phone number of the teacher.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"\",\n  \"subject\": \"\",\n  \"contactInformation\": {\n    \"email\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"_id\": \"\",\n  \"__v\": 0\n}\n\n</code></pre>\n<p>The response includes the teacher's name, subject, contact information with email and phone number, along with additional fields \"_id\" and \"__v\" which are specific to the system.</p>\n","urlObject":{"path":["teachers"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"a1ea8264-e598-42bc-93cd-5fe52529752e","name":"Create Teacher","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" :\"Atmaram Bhide\",\n    \"subject\":\"Maths\",\n    \"contactInformation\": {\n        \"email\" : \"ekamavsecretary@gmail.com\",\n        \"phoneNumber\" :\"9875736212\"\n\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/teachers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"142"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:35:19 GMT"},{"key":"Etag","value":"W/\"8e-IHLBWD/5JjGJPUEFZlAAcO/joKQ\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Atmaram Bhide\",\n    \"subject\": \"Maths\",\n    \"contactInformation\": {\n        \"email\": \"ekamavsecretary@gmail.com\"\n    },\n    \"_id\": \"6654d266c563e55ec416469e\",\n    \"__v\": 0\n}"},{"id":"0c8d352f-e25d-4e67-af02-c7305d9aec29","name":"Create Teacher","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" :\"Atmaram Bhide\",\n    \"subject\":\"Maths\",\n    \"contactInformation\": {\n        \"email\" : \"ekamavsecretary@gmail.com\",\n        \"phoneNumber\" :\"9875736212\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/teachers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"169"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:40:05 GMT"},{"key":"Etag","value":"W/\"a9-vVXRNrNOvosmotW8hpXsdARMEik\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Atmaram Bhide\",\n    \"subject\": \"Maths\",\n    \"contactInformation\": {\n        \"email\": \"ekamavsecretary@gmail.com\",\n        \"phoneNumber\": \"9875736212\"\n    },\n    \"_id\": \"6654d38534cbe05c1b4017e0\",\n    \"__v\": 0\n}"}],"_postman_id":"3e7aeb35-fad8-410e-8365-2cfed41e9544"},{"name":"Update teacher","id":"9f3ac663-11c0-448a-8471-5f9a8fb6406c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"contactInformation\": {\n        \"email\" : \"ekamavsecretary@gmail.com\",\n        \"phoneNumber\" :\"9875736212\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/teachers/6654d266c563e55ec416469e","description":"<h3 id=\"update-teacher-information\">Update Teacher Information</h3>\n<p>This endpoint allows the client to update the information of a specific teacher.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>contactInformation</code> (object)</p>\n<ul>\n<li><p><code>email</code> (string): The email address of the teacher.</p>\n</li>\n<li><p><code>phoneNumber</code> (string): The phone number of the teacher.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"age\": 0,\n  \"gender\": \"\",\n  \"marks\": 0,\n  \"attendance\": [\n    {\n      \"status\": \"\",\n      \"date\": \"\",\n      \"_id\": \"\"\n    }\n  ],\n  \"grade\": \"\",\n  \"__v\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["teachers","6654d266c563e55ec416469e"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"0ee0fa1c-739e-4768-9ae0-954246521e74","name":"Add attendance","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance\" :{\n        \"status\" : \"Present\",\n        \"date\":\"2024-05-27\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","uuid":"2e912a44-a30e-4d77-bbff-cb50bfa14a7f"},{"key":"Content-Length","value":"207","uuid":"ab5657d9-3475-407c-9b85-ecfc45644b19"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"e1bb5bd2-f85f-4606-bea7-3d767340af70"},{"key":"Date","value":"Mon, 27 May 2024 18:02:24 GMT","uuid":"55d892cf-8c65-4126-af01-930085fd6635"},{"key":"Etag","value":"W/\"cf-eZDqtuc9splNhp/5u+3X25Jw9xo\"","uuid":"75c2cebe-0877-49cd-8b91-583145d5f8f3"},{"key":"Replit-Cluster","value":"picard","uuid":"6af04a07-5849-4f96-ad22-0e0ad9edf3df"},{"key":"X-Powered-By","value":"Express","uuid":"d63bc0c5-def7-4145-8edc-cc09ad423043"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"643a5c19-8d03-474d-9eb9-733a03092025"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"643a5c19-8d03-474d-9eb9-733a03092025"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6654c859f8545574da7dad4b\",\n    \"name\": \"Ram\",\n    \"age\": 13,\n    \"gender\": \"Male\",\n    \"marks\": 450,\n    \"attendance\": [\n        {\n            \"status\": \"Present\",\n            \"date\": \"2024-05-27T00:00:00.000Z\",\n            \"_id\": \"6654cab0f8545574da7dad4e\"\n        }\n    ],\n    \"grade\": \"9\",\n    \"__v\": 0\n}"},{"id":"59b8c549-fc4b-41b3-8a29-8bf93dd00bea","name":"Update student","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Raghav\",\n    \"age\" :\"14\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-school}}/students/6654c859f8545574da7dad4b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","uuid":"282d1c71-9693-4292-b15d-9bac0896fe12"},{"key":"Content-Length","value":"210","uuid":"934ab5aa-7ca2-4134-bc54-d665ed2c7c9d"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"6e7e29b0-7847-4432-91e2-872bffd41542"},{"key":"Date","value":"Mon, 27 May 2024 18:04:24 GMT","uuid":"a561446b-388d-4f89-869e-0da0ae8ee5e0"},{"key":"Etag","value":"W/\"d2-dHOobq7P1/BEHCFIlIqlACQ96gc\"","uuid":"0364b004-fb75-46bb-baea-5c531a65703e"},{"key":"Replit-Cluster","value":"picard","uuid":"f2846dab-ece6-4ff8-90ec-49c0ab69efe6"},{"key":"X-Powered-By","value":"Express","uuid":"bab1e9b1-24c9-4524-b331-f4d701a143f5"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"8d46bb43-12a1-40cc-8149-601ee186b850"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"8d46bb43-12a1-40cc-8149-601ee186b850"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6654c859f8545574da7dad4b\",\n    \"name\": \"Raghav\",\n    \"age\": 14,\n    \"gender\": \"Male\",\n    \"marks\": 450,\n    \"attendance\": [\n        {\n            \"status\": \"Present\",\n            \"date\": \"2024-05-27T00:00:00.000Z\",\n            \"_id\": \"6654cab0f8545574da7dad4e\"\n        }\n    ],\n    \"grade\": \"9\",\n    \"__v\": 0\n}"}],"_postman_id":"9f3ac663-11c0-448a-8471-5f9a8fb6406c"},{"name":"Delete Teacher","id":"4d2abab3-51a4-4692-88de-75619ad61795","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host-school}}/teachers/6654d266c563e55ec416469e","description":"<p>The endpoint sends an HTTP DELETE request to remove the teacher with the specified ID. Upon a successful deletion, the response will include a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"string\",\n  \"student\": {\n    \"_id\": \"string\",\n    \"name\": \"string\",\n    \"age\": 0,\n    \"gender\": \"string\",\n    \"marks\": 0,\n    \"attendance\": [],\n    \"grade\": \"string\",\n    \"__v\": 0\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["teachers","6654d266c563e55ec416469e"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"f7a89cbf-9aed-4c28-8ca1-8da75138a543","name":"Delete Student","originalRequest":{"method":"DELETE","header":[],"url":"{{host-school}}/students/6654cb51f8545574da7dad53"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","uuid":"7b75aa52-fdbd-4df2-a250-ad180149b51f"},{"key":"Content-Length","value":"173","uuid":"a4a97587-d23b-4dcb-a24c-49cedd97bcb8"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"cb1043bc-cb13-4761-b53c-2763d79df276"},{"key":"Date","value":"Mon, 27 May 2024 18:11:01 GMT","uuid":"2c6bf7d5-41a5-40bf-be0b-489eb29aa903"},{"key":"Etag","value":"W/\"ad-Ogzx32TV8GStNG76zh8F+vkQJcQ\"","uuid":"351f41cf-36ac-4baf-b620-b3fa6cc41de2"},{"key":"Replit-Cluster","value":"picard","uuid":"8bce5bde-2d3a-4afe-b636-98e298c99753"},{"key":"X-Powered-By","value":"Express","uuid":"03ea1f72-839e-4b89-8a35-c01462718d87"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"1cdcba6e-529c-4ebe-b5b7-93d196f4ef98"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"1cdcba6e-529c-4ebe-b5b7-93d196f4ef98"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Student deleted successfully\",\n    \"student\": {\n        \"_id\": \"6654cb51f8545574da7dad53\",\n        \"name\": \"Ram\",\n        \"age\": 13,\n        \"gender\": \"Male\",\n        \"marks\": 450,\n        \"attendance\": [],\n        \"grade\": \"9\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"4d2abab3-51a4-4692-88de-75619ad61795"},{"name":"Get Teacher By Id","id":"6fa50cb0-7b8b-406a-a832-e3933a712845","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-school}}/teachers/6654d38534cbe05c1b4017e0","description":"<p>The endpoint makes an HTTP GET request to retrieve information about a specific teacher. The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": { \"type\": \"string\" },\n    \"teacher\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"contactInformation\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"email\": { \"type\": \"string\" },\n            \"phoneNumber\": { \"type\": \"string\" }\n          }\n        },\n        \"_id\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" },\n        \"subject\": { \"type\": \"string\" },\n        \"__v\": { \"type\": \"number\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["teachers","6654d38534cbe05c1b4017e0"],"host":["{{host-school}}"],"query":[],"variable":[]}},"response":[{"id":"4d487a8b-c025-4047-be39-25b52c73c4fd","name":"Get Teacher By Id","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/teachers/6654d38534cbe05c1b4017e0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"207"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:41:09 GMT"},{"key":"Etag","value":"W/\"cf-r25oCLdjZAyWdQ/Ee5TrEtjYTtg\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Teacher found\",\n    \"teacher\": {\n        \"contactInformation\": {\n            \"email\": \"ekamavsecretary@gmail.com\",\n            \"phoneNumber\": \"9875736212\"\n        },\n        \"_id\": \"6654d38534cbe05c1b4017e0\",\n        \"name\": \"Atmaram Bhide\",\n        \"subject\": \"Maths\",\n        \"__v\": 0\n    }\n}"},{"id":"f240dd8f-b43e-42cb-a0f2-7418ab480f7a","name":"Get Teacher By Id","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/teachers/6654d38534cbe05c1b4017e7"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:44:00 GMT"},{"key":"Etag","value":"W/\"1f-MeDn3DRHO2ZXPx39DFedOj9IKTY\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Teacher not found\"\n}"},{"id":"5b936dbf-408c-404e-9fac-bde1819efd1e","name":"Get Teacher By Id","originalRequest":{"method":"GET","header":[],"url":"{{host-school}}/teachers/6654d38534cbe05c1b4017e7"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"35"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 May 2024 18:49:41 GMT"},{"key":"Etag","value":"W/\"23-4f3IRjRgSj8I7ZPZ/LB7xs5h7Jg\""},{"key":"Replit-Cluster","value":"picard"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to fetch Teacher\"\n}"}],"_postman_id":"6fa50cb0-7b8b-406a-a832-e3933a712845"}]}