{"id":20461285,"url":"https://github.com/infectedduck/flask-music_api","last_synced_at":"2026-04-23T03:33:13.764Z","repository":{"id":256794652,"uuid":"850566769","full_name":"InfectedDuck/Flask-Music_API","owner":"InfectedDuck","description":"A REST API for managing a music collection using MongoDB. Features CRUD operations, health checks, and more. Ideal for integrating music data management into your applications.","archived":false,"fork":false,"pushed_at":"2024-09-14T00:15:39.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T11:35:14.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfectedDuck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-01T06:29:51.000Z","updated_at":"2024-09-14T00:15:42.000Z","dependencies_parsed_at":"2024-09-14T14:07:51.526Z","dependency_job_id":null,"html_url":"https://github.com/InfectedDuck/Flask-Music_API","commit_stats":null,"previous_names":["infectedduck/back-end-development-songs","infectedduck/flask-music_api"],"tags_count":0,"template":false,"template_full_name":"ibm-developer-skills-network/hvlga-Back-End-Development-Songs","purl":"pkg:github/InfectedDuck/Flask-Music_API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2FFlask-Music_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2FFlask-Music_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2FFlask-Music_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2FFlask-Music_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfectedDuck","download_url":"https://codeload.github.com/InfectedDuck/Flask-Music_API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2FFlask-Music_API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32165069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-15T12:24:39.086Z","updated_at":"2026-04-23T03:33:13.746Z","avatar_url":"https://github.com/InfectedDuck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Music API\n\n## Overview\n\nThis project is a Flask-based REST API for managing a music collection. It provides endpoints for CRUD operations on songs stored in a MongoDB database. The API includes features for health checks, counting records, retrieving all songs, fetching a song by ID, creating, updating, and deleting songs.\n\n## Features\n\n* **Health Check**: Endpoint to verify the API is running.\n* **Count Records**: Endpoint to get the total number of songs in the database.\n* **Retrieve All Songs**: Fetch all songs from the database.\n* **Retrieve Song by ID**: Get details of a specific song using its ID.\n* **Create Song**: Add a new song to the database.\n* **Update Song**: Modify details of an existing song.\n* **Delete Song**: Remove a song from the database.\n\n## Getting Started\n\n### Prerequisites\n\n* **Python**: Ensure Python 3.x is installed.\n* **Flask**: Install Flask using pip.\n* **pymongo**: Install pymongo using pip.\n\n### Configuration\n\nSet the following environment variables for MongoDB connection:\n\n- **`MONGODB_SERVICE`**: MongoDB server address.\n- **`MONGODB_USERNAME`**: MongoDB username (if authentication is used).\n- **`MONGODB_PASSWORD`**: MongoDB password (if authentication is used).\n- **`MONGODB_PORT`**: MongoDB port (optional).\n\n### API Endpoints\n\n- **GET `/health`**:  \n  Returns the health status of the API.\n\n- **GET `/count`**:  \n  Returns the total number of songs in the database.\n\n- **GET `/song`**:  \n  Retrieves all songs.\n\n- **GET `/song/\u003cint:id\u003e`**:  \n  Retrieves a song by ID.\n\n- **POST `/song`**:  \n  Creates a new song.\n\n- **PUT `/song/\u003cint:id\u003e`**:  \n  Updates an existing song.\n\n- **DELETE `/song/\u003cint:id\u003e`**:  \n  Deletes a song by ID.\n\n\n## License\nThis project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details. \u003cbr\u003e\nThis project is made as a part of IBM Course.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfectedduck%2Fflask-music_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfectedduck%2Fflask-music_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfectedduck%2Fflask-music_api/lists"}