{"id":24461757,"url":"https://github.com/shalinir8/calendar-task-api","last_synced_at":"2026-01-02T02:32:43.295Z","repository":{"id":260822238,"uuid":"882429124","full_name":"ShaliniR8/calendar-task-api","owner":"ShaliniR8","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-28T18:19:37.000Z","size":3054,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T04:29:32.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/ShaliniR8.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-11-02T18:52:57.000Z","updated_at":"2024-12-28T18:19:41.000Z","dependencies_parsed_at":"2024-11-02T20:25:26.460Z","dependency_job_id":"c931ca05-59f0-43c8-8f25-30806ed3a925","html_url":"https://github.com/ShaliniR8/calendar-task-api","commit_stats":null,"previous_names":["shalinir8/calendar-task-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaliniR8%2Fcalendar-task-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaliniR8%2Fcalendar-task-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaliniR8%2Fcalendar-task-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaliniR8%2Fcalendar-task-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShaliniR8","download_url":"https://codeload.github.com/ShaliniR8/calendar-task-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243558408,"owners_count":20310574,"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","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":"2025-01-21T04:29:40.146Z","updated_at":"2026-01-02T02:32:38.252Z","avatar_url":"https://github.com/ShaliniR8.png","language":"HTML","readme":"# Task Manager Flask App\n\nA simple Flask application that allows you to create, store, and query tasks using a SQLite database. Each task has a `datetime`, `task`, and `status` field.\n\n## Table of Contents\n\n- [Features](#features)\n- [Endpoints](#endpoints)\n- [Testing the API](#testing-the-api)\n## Features\n\n- Add new tasks with a description and status.\n- Retrieve all tasks or a specific task by ID.\n- Update existing tasks.\n- Delete tasks.\n- Uses SQLite for data storage.\n- API follows RESTful principles.\n\n## Endpoints\n\n### 1. Create a New Task\n\n- **URL**: `/tasks`\n- **Method**: `POST`\n- **Request Body** (JSON):\n  ```\n  {\n    \"task\": \"Task description here\",\n    \"status\": \"Task status here\"\n  }\n  ```\n- **Response** (201 Created):\n  ```\n  {\n    \"message\": \"Task added successfully\"\n  }\n  ```\n\n### 2. Retrieve All Tasks\n\n- **URL**: `/tasks`\n- **Method**: `GET`\n- **Response** (200 OK):\n  ```\n  [\n    {\n      \"id\": 1,\n      \"datetime\": \"2023-10-05T12:34:56.789123\",\n      \"task\": \"Task description here\",\n      \"status\": \"Task status here\"\n    },\n    ...\n  ]\n  ```\n\n### 3. Retrieve a Task by ID\n\n- **URL**: `/tasks/\u003cint:id\u003e`\n- **Method**: `GET`\n- **Response** (200 OK):\n  ```\n  {\n    \"id\": 1,\n    \"datetime\": \"2023-10-05T12:34:56.789123\",\n    \"task\": \"Task description here\",\n    \"status\": \"Task status here\"\n  }\n  ```\n\n### 4. Update a Task\n\n- **URL**: `/tasks/\u003cint:id\u003e`\n- **Method**: `PUT`\n- **Request Body** (JSON):\n  ```\n  {\n    \"task\": \"Updated task description\",\n    \"status\": \"Updated task status\"\n  }\n  ```\n- **Response** (200 OK):\n  ```\n  {\n    \"message\": \"Task updated successfully\"\n  }\n  ```\n\n### 5. Delete a Task\n\n- **URL**: `/tasks/\u003cint:id\u003e`\n- **Method**: `DELETE`\n- **Response** (200 OK):\n  ```\n  {\n    \"message\": \"Task deleted successfully\"\n  }\n  ```\n\n## Testing the API\n\n### **1. Add a New Task**\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"task\": \"Finish report\", \"status\": \"In Progress\"}' http://localhost:5000/tasks\n```\n\n### **2. Get All Tasks**\n\n```bash\ncurl http://localhost:5000/tasks\n```\n\n### **3. Get a Task by ID**\n\n```bash\ncurl http://localhost:5000/tasks/1\n```\n\n### **4. Update a Task**\n\n```bash\ncurl -X PUT -H \"Content-Type: application/json\" -d '{\"status\": \"Completed\"}' http://localhost:5000/tasks/1\n```\n### **5. Delete a Task**\n```bash\ncurl -X DELETE http://localhost:5000/tasks/1\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshalinir8%2Fcalendar-task-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshalinir8%2Fcalendar-task-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshalinir8%2Fcalendar-task-api/lists"}