{"id":21997912,"url":"https://github.com/benevanio/covid-case-sapi","last_synced_at":"2026-04-17T11:33:02.754Z","repository":{"id":245938976,"uuid":"819618383","full_name":"Benevanio/covid-case-sapi","owner":"Benevanio","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-24T21:59:19.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T04:45:41.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/Benevanio.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}},"created_at":"2024-06-24T21:55:44.000Z","updated_at":"2024-06-24T21:59:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7d70dc0-9a07-4dcb-89a9-a169207c6896","html_url":"https://github.com/Benevanio/covid-case-sapi","commit_stats":null,"previous_names":["benetesla/covid-case-sapi","benevanio/covid-case-sapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Benevanio/covid-case-sapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benevanio%2Fcovid-case-sapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benevanio%2Fcovid-case-sapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benevanio%2Fcovid-case-sapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benevanio%2Fcovid-case-sapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Benevanio","download_url":"https://codeload.github.com/Benevanio/covid-case-sapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benevanio%2Fcovid-case-sapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31927884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-29T22:19:08.108Z","updated_at":"2026-04-17T11:33:02.737Z","avatar_url":"https://github.com/Benevanio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## MuleSoft COVID Case Management API\n\n## Introduction\nThis project is a MuleSoft application designed to manage COVID case data. It provides endpoints to create, update, and retrieve COVID case information. The project is built using MuleSoft, leveraging various connectors and modules such as HTTP, Database, and DataWeave.\n\n## Table of Contents\n1. [Getting Started](#getting-started)\n2. [Prerequisites](#prerequisites)\n3. [Installation](#installation)\n4. [Configuration](#configuration)\n5. [Deployment](#deployment)\n6. [Usage](#usage)\n7. [Endpoints](#endpoints)\n8. [Logging](#logging)\n9. [Error Handling](#error-handling)\n10. [Contributing](#contributing)\n11. [License](#license)\n\n## Getting Started\nThis section will help you get started with the MuleSoft COVID Case Management API.\n\n## Prerequisites\n- MuleSoft Anypoint Studio\n- MySQL Database\n- Java 8 or higher\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-repo/mulesoft-covid-case-management.git\n   ```\n2. Open the project in Anypoint Studio.\n\n## Configuration\n1. Configure the MySQL database connection in `src/main/resources/mule-app.properties`:\n   ```properties\n   db.host=localhost\n   db.port=3306\n   db.user=root\n   db.password=yourPassword\n   db.name=mulesoft_tutorial\n   ```\n2. Set up the HTTP listener configuration in `src/main/mule/config.xml`:\n   ```xml\n   \u003chttp:listener-config name=\"HTTP_Listener_config\" doc:name=\"HTTP Listener config\" basePath=\"/learnmulesoft\"\u003e\n       \u003chttp:listener-connection host=\"0.0.0.0\" port=\"6061\" /\u003e\n   \u003c/http:listener-config\u003e\n   ```\n\n## Deployment\nDeploy the application to CloudHub:\n1. Right-click the project in Anypoint Studio.\n2. Select `Anypoint Platform` -\u003e `Deploy to CloudHub`.\n3. Follow the deployment wizard to complete the process.\n\n## Usage\nThe API exposes three main endpoints for managing COVID cases.\n\n## Endpoints\n1. **Create COVID Case (POST /v1/cases)**\n   - Description: Registers a new COVID case.\n   - Request: JSON payload with case details.\n   - Response: JSON with the created case ID.\n   \n2. **Update COVID Case (PUT /v1/cases)**\n   - Description: Updates an existing COVID case.\n   - Request: JSON payload with updated case details.\n   - Response: JSON with the updated case ID.\n   \n3. **Retrieve COVID Case (GET /v1/cases/{nationalID})**\n   - Description: Retrieves details of a COVID case by national ID.\n   - Request: Path parameter with national ID.\n   - Response: JSON with case details.\n\n### Example Requests\n#### Create COVID Case\n```bash\ncurl -X POST http://localhost:6061/learnmulesoft/v1/cases -H \"Content-Type: application/json\" -d '{\n  \"source\": \"UHIS\",\n  \"case_type\": \"Confirmed\",\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"phone\": \"1234567890\",\n  \"email\": \"john.doe@example.com\",\n  \"date_of_birth\": \"1980-01-01\",\n  \"national_id\": \"AB123456\",\n  \"national_id_type\": \"Passport\",\n  \"street_address\": \"123 Main St\",\n  \"city\": \"Anytown\",\n  \"state\": \"AN\",\n  \"postal\": \"12345\",\n  \"country\": \"USA\",\n  \"create_date\": \"2024-06-24\",\n  \"update_date\": \"2024-06-24\",\n  \"create_by\": \"UHIS\",\n  \"update_by\": \"UHIS\"\n}'\n```\n\n#### Update COVID Case\n```bash\ncurl -X PUT http://localhost:6061/learnmulesoft/v1/cases -H \"Content-Type: application/json\" -d '{\n  \"covidCase\": {\n    \"caseID\": \"123\",\n    \"source\": \"UHIS\",\n    \"caseType\": \"Confirmed\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"phone\": \"1234567890\",\n    \"email\": \"john.doe@example.com\",\n    \"dateOfBirth\": \"1980-01-01\",\n    \"nationalID\": \"AB123456\",\n    \"nationalIDType\": \"Passport\",\n    \"address\": {\n      \"streetAddress\": \"123 Main St\",\n      \"city\": \"Anytown\",\n      \"state\": \"AN\",\n      \"postal\": \"12345\",\n      \"country\": \"USA\"\n    }\n  }\n}'\n```\n\n#### Retrieve COVID Case\n```bash\ncurl -X GET http://localhost:6061/learnmulesoft/v1/cases/AB123456\n```\n\n## Logging\nThe application logs significant events and errors:\n- Start and end of each flow\n- Transaction and correlation IDs\n- Payload data\n\n## Error Handling\nThe application includes error handling for various scenarios:\n- Resource not found (404)\n- Internal server errors (500)\n\n## Contributing\nWe welcome contributions to this project. Please submit pull requests or raise issues for any improvements or bugs.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenevanio%2Fcovid-case-sapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenevanio%2Fcovid-case-sapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenevanio%2Fcovid-case-sapi/lists"}