{"id":18633482,"url":"https://github.com/rahat-khan-pathan/express.js-mongoose-mvcdesignpattern-practice","last_synced_at":"2026-07-03T19:31:44.122Z","repository":{"id":215978509,"uuid":"740168094","full_name":"Rahat-Khan-Pathan/Express.js-Mongoose-MVCdesignPattern-Practice","owner":"Rahat-Khan-Pathan","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-08T16:30:14.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T08:10:25.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rahat-Khan-Pathan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-07T18:09:07.000Z","updated_at":"2024-03-26T03:54:08.000Z","dependencies_parsed_at":"2024-01-07T19:28:25.484Z","dependency_job_id":"afe5518e-6b56-4c41-b5cf-14ad949ee78f","html_url":"https://github.com/Rahat-Khan-Pathan/Express.js-Mongoose-MVCdesignPattern-Practice","commit_stats":null,"previous_names":["rahat-khan-pathan/express.js-mongoose-mvcdesignpattern-practice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahat-Khan-Pathan%2FExpress.js-Mongoose-MVCdesignPattern-Practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahat-Khan-Pathan%2FExpress.js-Mongoose-MVCdesignPattern-Practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahat-Khan-Pathan%2FExpress.js-Mongoose-MVCdesignPattern-Practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahat-Khan-Pathan%2FExpress.js-Mongoose-MVCdesignPattern-Practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rahat-Khan-Pathan","download_url":"https://codeload.github.com/Rahat-Khan-Pathan/Express.js-Mongoose-MVCdesignPattern-Practice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239432078,"owners_count":19637779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T05:15:25.093Z","updated_at":"2025-10-30T00:23:36.545Z","avatar_url":"https://github.com/Rahat-Khan-Pathan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Student Management API\n\n## Introduction\n\nThis API provides functionality to manage student records, including adding, retrieving, updating, and deleting student information, using Express.js, Mongoose, MongoDB, and the MVC design pattern.\n\u003cbr\u003e\u003cbr\u003e\n\n## How To Run\n\nRun the following command\n\n```bash\nnpm start\n```\n\n\u003cbr\u003e\n\n## Base URL\n\nAll endpoints are relative to the base URL: `http://localhost:5000`\n\u003cbr\u003e\u003cbr\u003e\n\n## Endpoints\n\n### Get all Students\n\n-   **Endpoint:** `/student/get_all_students`\n-   **Method:** `GET`\n-   **Description:** Retrieve a list of all students.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Add a Student\n\n-   **Endpoint:** `/student/add_student`\n-   **Method:** `POST`\n-   **Description:** Add a new student to the database.\n-   **Body:**\n    ```json\n    {\n        \"fullName\": \"Rahat Khan\",\n        \"class\": 11,\n        \"roll\": 55,\n        \"section\": \"C\"\n    }\n    ```\n    \u003cbr\u003e\n\n### Get Student by Roll and Class\n\n-   **Endpoint:** `/student/get_student_by_roll_class/:roll/:class`\n-   **Method:** `GET`\n-   **Description:** Retrieve a student by roll and class.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Update Student by ID\n\n-   **Endpoint:** `/student/update_student_by_id/:id`\n-   **Method:** `PUT`\n-   **Description:** Update a student's information by ID.\n-   **Body:**\n    ```json\n    {\n        \"fullName\": \"Rahat Khan\",\n        \"class\": 11,\n        \"roll\": 55,\n        \"section\": \"C\"\n    }\n    ```\n    \u003cbr\u003e\n\n### Get Student by ID\n\n-   **Endpoint:** `/student/get_student_by_id/:id`\n-   **Method:** `GET`\n-   **Description:** Retrieve a student by ID.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Delete Student by ID\n\n-   **Endpoint:** `/student/delete_student_by_id/:id`\n-   **Method:** `DELETE`\n-   **Description:** Delete a student by ID.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Delete Student by Roll and Class\n\n-   **Endpoint:** `/student/delete_student_by_roll_class/:roll/:class`\n-   **Method:** `DELETE`\n-   **Description:** Delete a student by roll and class.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Add Marks\n\n-   **Endpoint:** `/student/add_marks`\n-   **Method:** `POST`\n-   **Valid Terms:** `First`, `Second`, `Final`\n-   **Valid Subjects:** `Bangla`, `English`, `Math`\n-   **Description:** Add marks to the student collection.\n-   **Body:**\n    ```json\n    {\n        \"marks\": 10,\n        \"roll\": 91,\n        \"class\": 11,\n        \"term\": \"First\",\n        \"subject\": \"Bangla\"\n    }\n    ```\n    \u003cbr\u003e\n\n### Get All Students Data with Marks\n\n-   **Endpoint:** `/student/get_all_students_marks`\n-   **Method:** `GET`\n-   **Description:** Get all students data along with their marks in formatted way.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Get One Student's Data with Marks by ID\n\n-   **Endpoint:** `/student/get_student_marks_by_id/:id`\n-   **Method:** `GET`\n-   **Description:** Get one student's data along with his/her marks in formatted way.\n    \u003cbr\u003e\u003cbr\u003e\n\n### Get One Student's Data with Marks by Roll and Class\n\n-   **Endpoint:** `/student/get_student_marks_by_roll_class/:roll/:class`\n-   **Method:** `GET`\n-   **Description:** Get one student's data along with his/her marks in formatted way.\n    \u003cbr\u003e\u003cbr\u003e\n\n## Notes\n\n-   Ensure to replace `:id`, `:roll`, and `:class` with the actual ID, roll number, and class values respectively when making requests. You can see the postman documentation for more clarifications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahat-khan-pathan%2Fexpress.js-mongoose-mvcdesignpattern-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahat-khan-pathan%2Fexpress.js-mongoose-mvcdesignpattern-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahat-khan-pathan%2Fexpress.js-mongoose-mvcdesignpattern-practice/lists"}