{"id":24517555,"url":"https://github.com/iamrosada/hospital-management","last_synced_at":"2026-05-20T09:31:38.879Z","repository":{"id":206674107,"uuid":"717435758","full_name":"iamrosada/hospital-management","owner":"iamrosada","description":"The Doctor Service is a component of the hospital management system, responsible for managing information related to doctors.","archived":false,"fork":false,"pushed_at":"2023-11-11T14:17:10.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T11:11:05.663Z","etag":null,"topics":["clean-architecture","ddd","ddd-architecture","golang","mysql","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","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/iamrosada.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}},"created_at":"2023-11-11T13:36:56.000Z","updated_at":"2023-11-11T13:54:15.000Z","dependencies_parsed_at":"2023-11-11T14:49:01.560Z","dependency_job_id":null,"html_url":"https://github.com/iamrosada/hospital-management","commit_stats":null,"previous_names":["iamrosada/hospital-management"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamrosada/hospital-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrosada%2Fhospital-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrosada%2Fhospital-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrosada%2Fhospital-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrosada%2Fhospital-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamrosada","download_url":"https://codeload.github.com/iamrosada/hospital-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrosada%2Fhospital-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"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":["clean-architecture","ddd","ddd-architecture","golang","mysql","sql"],"created_at":"2025-01-22T01:34:25.273Z","updated_at":"2026-05-20T09:31:38.834Z","avatar_url":"https://github.com/iamrosada.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctor Service\n\nThe Doctor Service is a component of the hospital management system, responsible for managing information related to doctors.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n- [Usage](#usage)\n  - [Endpoints](#endpoints)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Overview\n\nThe Doctor Service provides functionalities for creating, updating, listing, deleting, and retrieving information about doctors.\n\n## Getting Started\n\n### Prerequisites\n\n- Go (version 1.16 or higher)\n- MySQL\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/iamrosada/hospital-management.git\n   ```\n\n2. Navigate to the `doctor-service` directory:\n\n   ```bash\n   cd hospital-management/doctor-service\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   go get -u ./...\n   ```\n\n4. Build and run the application:\n\n   ```bash\n   go run main.go\n   ```\n\n## Usage\n\n### Endpoints\n\n- **Create Doctor:**\n\n  ```http\n  POST /doctors\n  ```\n\n  Example request body:\n\n  ```json\n  {\n    \"name\": \"Dr. John Doe\",\n    \"bi\": \"123456789\",\n    \"specialty\": \"Cardiology\",\n    \"experience\": 10,\n    \"email\": \"john.doe@example.com\",\n    \"phone_number\": \"+1234567890\"\n  }\n  ```\n\n- **List Doctors:**\n\n  ```http\n  GET /doctors\n  ```\n\n- **Get Doctor by ID:**\n\n  ```http\n  GET /doctors/{id}\n  ```\n\n- **Update Doctor by ID:**\n\n  ```http\n  PUT /doctors/{id}\n  ```\n\n  Example request body:\n\n  ```json\n  {\n    \"name\": \"Dr. Jane Smith\",\n    \"bi\": \"987654321\",\n    \"specialty\": \"Orthopedics\",\n    \"experience\": 15,\n    \"email\": \"jane.smith@example.com\",\n    \"phone_number\": \"+9876543210\"\n  }\n  ```\n\n- **Delete Doctor by ID:**\n\n  ```http\n  DELETE /doctors/{id}\n  ```\n\n## Contributing\n\nContributions are welcome! If you have any suggestions, improvements, or find any issues, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamrosada%2Fhospital-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamrosada%2Fhospital-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamrosada%2Fhospital-management/lists"}