{"id":30890199,"url":"https://github.com/alexandramartinez/todo-api-impl","last_synced_at":"2025-09-08T17:13:08.746Z","repository":{"id":309389709,"uuid":"1027744832","full_name":"alexandramartinez/todo-api-impl","owner":"alexandramartinez","description":"A MuleSoft API implementation that demonstrates MySQL database integration using Docker containers. This project shows how to build a Todo API with database connectivity in Anypoint Code Builder (ACB).","archived":false,"fork":false,"pushed_at":"2025-08-28T21:34:47.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T02:51:00.346Z","etag":null,"topics":["acb","anypoint-code-builder","api","api-rest","mule","mule-app","mule4","mulesoft","rest-api"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/playlist?list=PLb61lESgk6hh9SszYvsAnLYiV9-WCpqPP","language":"DataWeave","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/alexandramartinez.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}},"created_at":"2025-07-28T13:20:29.000Z","updated_at":"2025-08-28T21:34:50.000Z","dependencies_parsed_at":"2025-08-11T17:36:23.092Z","dependency_job_id":null,"html_url":"https://github.com/alexandramartinez/todo-api-impl","commit_stats":null,"previous_names":["alexandramartinez/todo-api-impl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexandramartinez/todo-api-impl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandramartinez%2Ftodo-api-impl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandramartinez%2Ftodo-api-impl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandramartinez%2Ftodo-api-impl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandramartinez%2Ftodo-api-impl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexandramartinez","download_url":"https://codeload.github.com/alexandramartinez/todo-api-impl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandramartinez%2Ftodo-api-impl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274219289,"owners_count":25243385,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":["acb","anypoint-code-builder","api","api-rest","mule","mule-app","mule4","mulesoft","rest-api"],"created_at":"2025-09-08T17:13:07.251Z","updated_at":"2025-09-08T17:13:08.738Z","avatar_url":"https://github.com/alexandramartinez.png","language":"DataWeave","readme":"# Todo API Implementation\n\nA MuleSoft API implementation that demonstrates MySQL database integration using Docker containers. This project shows how to build a Todo API with database connectivity in Anypoint Code Builder (ACB).\n\n## Important: API Specification Setup\n\n\u003e [!IMPORTANT]\n\u003e **Before using this project**, you'll need to implement the API specification in your own Anypoint Platform organization.\n\nThe complete OpenAPI 3.0 specification is available in [`todo-task-api.yaml`](todo-task-api.yaml). This project currently references an API specification from a specific organization. To use this project:\n\n1. **Import the specification** - Upload [`todo-task-api.yaml`](todo-task-api.yaml) to your Anypoint Exchange\n2. **Update the reference** - Modify the API reference in [`src/main/mule/global.xml`](src/main/mule/global.xml) and [`pom.xml`](/pom.xml) to point to your organization's API\n3. **Configure the project** - Update the `api` attribute in the `apikit:config` element with your organization's API details\n\nThe API specification defines:\n- All available endpoints and their operations\n- Request/response schemas for Task objects\n- Query parameters for filtering tasks\n- Error responses and status codes\n\n## Features\n\n- ✅ MySQL database running in Docker\n- ✅ MuleSoft flows with database operations\n- ✅ DataWeave transformations for SQL and JSON\n- ✅ RESTful API endpoints\n- ✅ VS Code integration with Container Tools and Database Client\n- ✅ OpenAPI 3.0 specification\n\n## API Endpoints\n\n| Method | Endpoint | Happy Path | Error Handling | Description |\n|--------|----------|------------|----------------|-------------|\n| GET | `/api/tasks` | ✅ | Not Implemented | Get all tasks |\n| GET | `/api/tasks/{taskId}` | ✅ | Not Implemented | Get specific task |\n| POST | `/api/tasks` | ✅ | Not Implemented | Create new task |\n| PUT | `/api/tasks/{taskId}` | ✅ | Not Implemented | Update task |\n| DELETE | `/api/tasks/{taskId}` | ✅ | Not Implemented | Delete task |\n\n\n## Prerequisites\n\n- [VS Code](https://code.visualstudio.com/Download) with extensions:\n  - [Anypoint Extension Pack](https://marketplace.visualstudio.com/items?itemName=salesforce.mule-dx-extension-pack)\n  - [Container Tools](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker)\n  - [Database Client](https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-database-client2)\n  - [Postcode](https://marketplace.visualstudio.com/items?itemName=rohinivsenthil.postcode) and/or [Postman](https://marketplace.visualstudio.com/items?itemName=Postman.postman-for-vscode)\n- [Docker Desktop](https://docs.docker.com/desktop/)\n\n## Quick Start\n\n### 1. Start MySQL Database\n\nUse the Container Tools extension in VS Code to click \"Run All Services\" on the [`docker-compose.yml`](docker-compose.yml) file.\n\n```yml\nversion: '3'\nservices:\n  db:\n    image: mysql:latest\n    environment:\n      MYSQL_ROOT_PASSWORD: admin\n      MYSQL_DATABASE: mysqldb\n      MYSQL_USER: user\n      MYSQL_PASSWORD: password\n    ports:\n      - 3306:3306\n    volumes:\n      - db_data:/var/lib/mysql\nvolumes:\n  db_data:\n```\n\n### 2. Set Up Database\n\nConnect to MySQL using the Database Client extension:\n\n- **Host**: `127.0.0.1`\n- **Port**: `3306`\n- **User**: `user`\n- **Password**: `password`\n- **Database**: `mysqldb`\n\nRun the [SQL script](/create-table-template.sql) to create the tasks table:\n\n```sql\nCREATE TABLE tasks(  \n    id int NOT NULL PRIMARY KEY AUTO_INCREMENT,\n    title VARCHAR(255) NOT NULL,\n    description VARCHAR(255),\n    dueDate VARCHAR(255),\n    completed BOOLEAN NOT NULL\n);\n```\n\n### 3. Run the Application\n\nStart the Mule application in Anypoint Code Builder.\n\n### 4. Test the API\n\nYou can use the attached Postman Collection to run the 5 endpoints: [To-Do API.postman_collection.json](/To-Do%20API.postman_collection.json)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandramartinez%2Ftodo-api-impl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandramartinez%2Ftodo-api-impl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandramartinez%2Ftodo-api-impl/lists"}