{"id":51077132,"url":"https://github.com/mshahdevs/medcare-clinic-management-system","last_synced_at":"2026-06-23T15:04:22.357Z","repository":{"id":365460047,"uuid":"1270240989","full_name":"mshahdevs/medcare-clinic-management-system","owner":"mshahdevs","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-17T13:08:24.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T13:23:16.714Z","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/mshahdevs.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-15T14:18:11.000Z","updated_at":"2026-06-17T13:10:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mshahdevs/medcare-clinic-management-system","commit_stats":null,"previous_names":["mshahdevs/medcare-clinic-management-system"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mshahdevs/medcare-clinic-management-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshahdevs%2Fmedcare-clinic-management-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshahdevs%2Fmedcare-clinic-management-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshahdevs%2Fmedcare-clinic-management-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshahdevs%2Fmedcare-clinic-management-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mshahdevs","download_url":"https://codeload.github.com/mshahdevs/medcare-clinic-management-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshahdevs%2Fmedcare-clinic-management-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34694787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-23T15:04:21.544Z","updated_at":"2026-06-23T15:04:22.345Z","avatar_url":"https://github.com/mshahdevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MedCare API Testing Guide\n\n## Testing Tool\n\nAll backend APIs can be tested using **Postman**.\n\n## Base URL\n\n```txt\nhttp://localhost:5000/api\n```\n\n## 1. Patient Registration API\n\n**Method:** POST\n**Endpoint:**\n\n```txt\n/api/auth/register\n```\n\n**Body:**\n\n```json\n{\n  \"fullName\": \"Muhammad Shah\",\n  \"email\": \"mshah@example.com\",\n  \"password\": \"123456\",\n  \"phone\": \"03001234567\",\n  \"role\": \"patient\",\n  \"gender\": \"male\",\n  \"age\": 24,\n  \"address\": \"Peshawar, Pakistan\"\n}\n```\n\n**Expected Result:**\n\n- Patient registered successfully\n- JWT token returned\n\n---\n\n## 2. Login API\n\n**Method:** POST\n**Endpoint:**\n\n```txt\n/api/auth/login\n```\n\n**Body:**\n\n```json\n{\n  \"email\": \"mshah@example.com\",\n  \"password\": \"123456\"\n}\n```\n\n**Expected Result:**\n\n- Login successful\n- User data returned\n- JWT token returned\n\n---\n\n## 3. Create Doctor API\n\n**Method:** POST\n**Endpoint:**\n\n```txt\n/api/admin/doctors\n```\n\n**Body:**\n\n```json\n{\n  \"fullName\": \"Dr. Ali Khan\",\n  \"email\": \"drali@medcare.com\",\n  \"password\": \"123456\",\n  \"phone\": \"03111234567\",\n  \"gender\": \"male\",\n  \"specialization\": \"Cardiologist\",\n  \"experience\": 8,\n  \"qualification\": \"MBBS, FCPS\",\n  \"consultationFee\": 2500,\n  \"address\": \"Peshawar, Pakistan\"\n}\n```\n\n**Expected Result:**\n\n- Doctor created successfully\n- Doctor role should be `doctor`\n\n---\n\n## 4. Get All Doctors API\n\n**Method:** GET\n**Endpoint:**\n\n```txt\n/api/doctors\n```\n\n**Expected Result:**\n\n- List of all active doctors\n- Password should not be returned\n\n---\n\n## 5. Get Single Doctor API\n\n**Method:** GET\n**Endpoint:**\n\n```txt\n/api/doctors/:id\n```\n\n**Expected Result:**\n\n- Single doctor details returned\n- Doctor must have role `doctor`\n\n---\n\n# Basic QA Test Cases\n\n## Positive Test Cases\n\n- Patient can register with valid data.\n- Patient can login with correct email and password.\n- Admin can create doctor with valid doctor data.\n- Doctors list API returns active doctors.\n- Single doctor API returns correct doctor details.\n\n## Negative Test Cases\n\n- Register should fail if email already exists.\n- Register should fail if required fields are missing.\n- Login should fail with wrong password.\n- Create doctor should fail if email already exists.\n\n## Security Checks\n\n- Password should be stored in hashed form.\n- Password should not appear in API responses.\n- JWT token should be required for protected routes.\n- Role-based access should be applied for admin and patient routes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmshahdevs%2Fmedcare-clinic-management-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmshahdevs%2Fmedcare-clinic-management-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmshahdevs%2Fmedcare-clinic-management-system/lists"}