{"id":19297364,"url":"https://github.com/anythinglord/flask-api","last_synced_at":"2026-04-17T14:37:13.029Z","repository":{"id":259977590,"uuid":"879965069","full_name":"anythinglord/flask-api","owner":"anythinglord","description":"Task Managemer API built with Python \u0026 flask","archived":false,"fork":false,"pushed_at":"2024-10-28T22:39:01.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T00:45:02.598Z","etag":null,"topics":["flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/anythinglord.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-10-28T21:41:37.000Z","updated_at":"2024-10-28T22:39:05.000Z","dependencies_parsed_at":"2024-10-28T22:41:34.478Z","dependency_job_id":null,"html_url":"https://github.com/anythinglord/flask-api","commit_stats":null,"previous_names":["anythinglord/flask-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anythinglord/flask-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anythinglord%2Fflask-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anythinglord%2Fflask-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anythinglord%2Fflask-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anythinglord%2Fflask-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anythinglord","download_url":"https://codeload.github.com/anythinglord/flask-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anythinglord%2Fflask-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31933672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"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":["flask","python"],"created_at":"2024-11-09T23:04:16.020Z","updated_at":"2026-04-17T14:37:13.013Z","avatar_url":"https://github.com/anythinglord.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Task Management API\n\nThis project is a simple REST API built with Flask for managing a list of tasks. It provides CRUD (Create, Read, Update, Delete) operations on tasks, allowing users to organize and prioritize their to-do items.\n\n### Features\n\n- Create tasks with details like title, description, due date, priority, and status.\n- Retrieve a list of all tasks or a specific task by ID.\n- Update tasks to modify details or mark as completed.\n- Delete tasks when they are no longer needed.\n- Simple file-based storage using JSON for easy setup and use.\n\n### Project Structure\n\n```\ntask_manager/\n├── app.py               # Main application file\n├── requirements.txt     # Project dependencies\n└── data/\n    └── tasks.json       # Simulated database for storing tasks\n```\n\n### Requirements\n\n- Python 3.x\n- Flask (specified in `requirements.txt`)\n\n### Installation and Setup\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/your-username/task-manager-api.git\n   cd task-manager-api\n   ```\n\n2. **Install dependencies**:\n   Use the following command to install the required Python packages.\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Run the application**:\n   Start the Flask server by running:\n   ```bash\n   python app.py\n   ```\n   The application will be available at `http://127.0.0.1:5000`.\n\n### Endpoints\n\n#### 1. Create a Task\n- **Endpoint**: `/tasks`\n- **Method**: `POST`\n- **Payload**:\n  ```json\n  {\n    \"title\": \"My first task\",\n    \"description\": \"This is a sample task\",\n    \"due_date\": \"2024-11-10\",\n    \"priority\": \"high\",\n    \"status\": \"pending\"\n  }\n  ```\n- **Response**: Returns the created task object with an `id`.\n\n#### 2. Get All Tasks\n- **Endpoint**: `/tasks`\n- **Method**: `GET`\n- **Response**: List of all tasks.\n\n#### 3. Get a Task by ID\n- **Endpoint**: `/tasks/\u003ctask_id\u003e`\n- **Method**: `GET`\n- **Response**: The specific task if found, otherwise a `404` error.\n\n#### 4. Update a Task\n- **Endpoint**: `/tasks/\u003ctask_id\u003e`\n- **Method**: `PUT`\n- **Payload**: JSON with fields to update (e.g., `status`, `priority`).\n- **Response**: Returns the updated task or `404` if not found.\n\n#### 5. Delete a Task\n- **Endpoint**: `/tasks/\u003ctask_id\u003e`\n- **Method**: `DELETE`\n- **Response**: `204` status code on success, `404` if not found.\n\n### Example Usage\n\n1. **Creating a Task**:\n   ```bash\n   curl -X POST http://127.0.0.1:5000/tasks -H \"Content-Type: application/json\" -d '{\"title\": \"Test Task\", \"description\": \"Test Description\", \"due_date\": \"2024-11-10\", \"priority\": \"medium\", \"status\": \"pending\"}'\n   ```\n\n2. **Getting All Tasks**:\n   ```bash\n   curl -X GET http://127.0.0.1:5000/tasks\n   ```\n\n3. **Updating a Task**:\n   ```bash\n   curl -X PUT http://127.0.0.1:5000/tasks/1 -H \"Content-Type: application/json\" -d '{\"status\": \"completed\"}'\n   ```\n\n4. **Deleting a Task**:\n   ```bash\n   curl -X DELETE http://127.0.0.1:5000/tasks/1\n   ```\n\n### License\n\nThis project is licensed under the MIT License.\n# repo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanythinglord%2Fflask-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanythinglord%2Fflask-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanythinglord%2Fflask-api/lists"}