{"id":21542530,"url":"https://github.com/rahulgithub-web/project2interngroup41","last_synced_at":"2026-04-14T05:31:17.084Z","repository":{"id":41161959,"uuid":"508274459","full_name":"rahulgithub-web/project2internGroup41","owner":"rahulgithub-web","description":"Open to Intern Project","archived":false,"fork":false,"pushed_at":"2022-07-02T15:27:55.000Z","size":5030,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"project/internshipGroup41","last_synced_at":"2025-03-17T23:52:15.810Z","etag":null,"topics":["bodyparser","expressjs","javascript","mongodb","mongoose","nodejs","regex"],"latest_commit_sha":null,"homepage":"","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/rahulgithub-web.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}},"created_at":"2022-06-28T11:40:57.000Z","updated_at":"2022-07-02T15:23:48.000Z","dependencies_parsed_at":"2022-09-08T22:10:47.852Z","dependency_job_id":null,"html_url":"https://github.com/rahulgithub-web/project2internGroup41","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahulgithub-web/project2internGroup41","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulgithub-web%2Fproject2internGroup41","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulgithub-web%2Fproject2internGroup41/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulgithub-web%2Fproject2internGroup41/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulgithub-web%2Fproject2internGroup41/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahulgithub-web","download_url":"https://codeload.github.com/rahulgithub-web/project2internGroup41/tar.gz/refs/heads/project/internshipGroup41","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulgithub-web%2Fproject2internGroup41/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31784251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bodyparser","expressjs","javascript","mongodb","mongoose","nodejs","regex"],"created_at":"2024-11-24T05:09:53.613Z","updated_at":"2026-04-14T05:31:17.068Z","avatar_url":"https://github.com/rahulgithub-web.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# project2\n\n\n\n## Open to Intern Project Requirement\n\n### Key points\n- Create a group database `groupXDatabase`. You can clean the db you previously used and resue that.\n- This time each group should have a *single git branch*. Coordinate amongst yourselves by ensuring every next person pulls the code last pushed by a team mate. You branch will be checked as part of the demo. Branch name should follow the naming convention `project/internshipGroupX`\n- Follow the naming conventions exactly as instructed. The backend code will be integrated with the front-end application which means any mismatch in the expected request body will lead to failure in successful integration.\n\n### Models\n- College Model\n```\n{ name: { mandatory, unique, example iith}, fullName: {mandatory, example `Indian Institute of Technology, Hyderabad`}, logoLink: {mandatory}, isDeleted: {boolean, default: false} }\n```\n- Intern Model\n```\n{ name: {mandatory}, email: {mandatory, valid email, unique}, mobile: {mandatory, valid mobile number, unique}, collegeId: {ObjectId, ref to college model, isDeleted: {boolean, default: false}}\n```\n\n### POST /functionup/colleges\n- Create a college - a document for each member of the group\n- The logo link will be provided to you by the mentors. This link is a s3 (Amazon's Simple Service) url. Try accessing the link to see if the link is public or not.\n\n  `Endpoint: BASE_URL/functionup/colleges`\n\n### POST /functionup/interns\n- Create a document for an intern. \n- Also save the collegeId along with the document. Your request body contains the following fields - { name, mobile, email, collegeName}\n- Return HTTP status 201 on a succesful document creation. Also return the document. The response should be a JSON object like [this](#successful-response-structure) \n\n- Return HTTP status 400 for an invalid request with a response body like [this](#error-response-structure)\n\n### GET /functionup/collegeDetails\n- Returns the college details for the requested college (Expect a query parameter by the name `collegeName`. This is anabbreviated college name. For example `iith`)\n- Returns the list of all interns who have applied for internship at this college.\n- The response structure should look like [this](#college-details)\n\n\n## Testing \n- To test these apis create a new collection in Postman named Project 2 Internship\n- Each api should have a new request in this collection\n- Each request in the collection should be rightly named. Eg Create college, Get college details etc\n- Each member of each team should have their tests in running state\n\n\nRefer below sample\n\n ![A Postman collection and request sample](assets/Postman-collection-sample.png)\n\n## Response\n\n### Successful Response structure\n```yaml\n{\n  status: true,\n  data: {\n\n  }\n}\n```\n### Error Response structure\n```yaml\n{\n  status: false,\n  message: \"\"\n}\n```\n\n## Collections samples\n\n#### College\n```yaml\n{\n    \"name\" : \"iith\",\n    \"fullName\" : \"Indian Institute of Technology, Hyderabad\",\n    \"logoLink\" : \"https://functionup.s3.ap-south-1.amazonaws.com/colleges/iith.png\",\n    \"isDeleted\" : false\n}\n```\n#### Intern\n```yaml\n   {\n    \"isDeleted\" : false,\n    \"name\" : \"Jane Does\",\n    \"email\" : \"jane.doe@iith.in\",\n    \"mobile\" : \"90000900000\",\n    \"collegeId\" : ObjectId(\"888771129c9ea621dc7f5e3b\")\n}\n```\n## Response samples\n\n### College details\n```yaml\n{\n  \"data\": {\n    \"name\": \"xyz\",\n    \"fullName\": \"Some Institute of Engineering and Technology\",\n    \"logoLink\": \"some public s3 link for a college logo\",     \n    \"interns\": [\n      {\n        \"_id\": \"123a47301a53ecaeea02be59\",\n        \"name\": \"Jane Doe\",\n        \"email\": \"jane.doe@miet.ac.in\",\n        \"mobile\": \"8888888888\"\n      },\n      {\n        \"_id\": \"45692c0e1a53ecaeea02b1ac\",\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@miet.ac.in\",\n        \"mobile\": \"9999999999\"\n      },\n      {\n        \"_id\": \"7898d0251a53ecaeea02a623\",\n        \"name\": \"Sukruti\",\n        \"email\": \"dummy.email@miet.ac.in\",\n        \"mobile\": \"9191919191\"\n      },\n      {\n        \"_id\": \"999803da1a53ecaeea02a07e\",\n        \"name\": \"Neeraj Kumar\",\n        \"email\": \"another.example@miet.ac.in\",\n        \"mobile\": \"9898989898\"\n      }\n    ]\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulgithub-web%2Fproject2interngroup41","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulgithub-web%2Fproject2interngroup41","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulgithub-web%2Fproject2interngroup41/lists"}