{"id":23020737,"url":"https://github.com/kryptonbd/todo_api","last_synced_at":"2025-08-19T04:44:47.609Z","repository":{"id":194309482,"uuid":"540670240","full_name":"KryptonBD/TODO_API","owner":"KryptonBD","description":"A CRUD operation with MongoDB, Node, Express without mongoose","archived":false,"fork":false,"pushed_at":"2022-09-24T01:22:02.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T14:52:55.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/KryptonBD.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":"2022-09-24T01:20:06.000Z","updated_at":"2024-01-01T13:53:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"62218b08-bf2a-4c9a-b0b9-348f2debc72c","html_url":"https://github.com/KryptonBD/TODO_API","commit_stats":null,"previous_names":["kryptonbd/todo_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KryptonBD/TODO_API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FTODO_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FTODO_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FTODO_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FTODO_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KryptonBD","download_url":"https://codeload.github.com/KryptonBD/TODO_API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FTODO_API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271103022,"owners_count":24699638,"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-08-19T02:00:09.176Z","response_time":63,"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":[],"created_at":"2024-12-15T12:15:00.322Z","updated_at":"2025-08-19T04:44:47.527Z","avatar_url":"https://github.com/KryptonBD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB-Node-Express To Do\nA CRUD operation with MongoDB, Node, Express without mongoose\n\n## Getting Started\nyou need to edit .env file with your DB URL, replace **YOUR_CONNECTION_URL** with proper url\nonce done, simple run\n```\nnpm install\nnpm run server\n```\n\n# API Usage and Endpoints for Task\n\n## Add a new task [POST /api/tasks]\n- Request: Add Task\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"title\": \"Task Title\",\n            \"description\": \"Task Description\",\n            \"startDate\": \"23/09/2022\",\n            \"dueDate\": \"23/09/2022\",\n            \"status\": \"pending\",\n            \"priority\": \"high\"\n        }\n    \n- Response: 201 Created\n\n\n## Get all tasks [GET /api/tasks]\n- Request: Get all tasks\n    \n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Task Title\",\n                \"description\": \"Task Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\",\n                \"status\": \"pending\",\n                \"priority\": \"high\"\n            }\n        ]\n\n## Get a task [GET /api/tasks/:id]\n- Request: Get a task\n\n- Response: 200 OK\n    - Body\n        {\n            \"title\": \"Task Title\",\n            \"description\": \"Task Description\",\n            \"startDate\": \"23/09/2022\",\n            \"dueDate\": \"23/09/2022\",\n            \"status\": \"pending\",\n            \"priority\": \"high\"\n        }\n\n## Update a task [PUT /api/tasks/:id]\n- Request: Update a task\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"title\": \"Task Title\",\n            \"description\": \"Task Description\",\n            \"startDate\": \"23/09/2022\",\n            \"dueDate\": \"23/09/2022\",\n            \"status\": \"pending\",\n            \"priority\": \"high\"\n        }\n\n- Response: 200 OK\n\n## Delete a task [DELETE /api/tasks/:id]\n- Request: Delete a task\n\n- Response: 200 OK\n\n## Mark task as done date [PUT api/tasks/markAsDone/:id]\n- Request: Mark task as done date\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"doneDate\": \"23/09/2022\"\n        }\n    \n- Response: 200 OK\n\n## Change task Status [PUT api/tasks/status/:id]\n- Request: Change task Status\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"status\": \"pending\"\n        }\n    \n- Response: 200 OK\n\n## Filter Task by status [GET api/tasks/status/:status]\n- Request: Filter Task by status\n    \n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Task Title\",\n                \"description\": \"Task Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\",\n                \"status\": \"pending\",\n                \"priority\": \"high\"\n            }\n        ]\n\n## Search Task by title [GET api/tasks/search/:title]\n- Request: Search Task by title\n\n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Task Title\",\n                \"description\": \"Task Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\",\n                \"status\": \"pending\",\n                \"priority\": \"high\"\n            }\n        ]\n\n## Sort tasks by start date, due date, done date [GET api/tasks/sort]\n- Request: Sort tasks by start date, due date, done date\n     - Headers\n        Content-Type: application/json\n    \n    - Body\n        {\n            \"dateType\": \"startDate\",\n        }\n    \n- Response: 200 OK\n\n\n# API usage and Endpoints for Projects\n\n## Add a new project [POST /api/projects]\n- Request: Add Project\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"title\": \"Project Title\",\n            \"description\": \"Project Description\",\n            \"startDate\": \"23/09/2022\",\n            \"dueDate\": \"23/09/2022\"\n        }\n    \n- Response: 201 Created\n\n## Get all projects [GET /api/projects]\n- Request: Get all projects\n\n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Project Title\",\n                \"description\": \"Project Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\"\n            }\n        ]\n\n## Get a project [GET /api/projects/:id]\n- Request: Get a project\n\n- Response: 200 OK\n    - Body\n        {\n            \"title\": \"Project Title\",\n            \"description\": \"Project Description\",\n            \"startDate\": \"23/09/2022\",\n            \"dueDate\": \"23/09/2022\"\n        }\n\n## Update a project [PUT /api/projects/:id]\n- Request: Update a project\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"title\": \"Project Title\",\n            \"description\": \"Project Description\",\n            \"startDate\": \"23/09/2022\",\n            \"dueDate\": \"23/09/2022\"\n        }\n    \n- Response: 200 OK\n\n## Delete a project [DELETE /api/projects/:id]\n- Request: Delete a project\n\n- Response: 200 OK\n\n## Get all tasks of a project [GET /api/projects/:id/tasks/]\n- Request: Get all tasks of a project\n\n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Task Title\",\n                \"description\": \"Task Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\",\n                \"status\": \"pending\",\n                \"priority\": \"high\",\n                projectId: \"5OM3R4ND0M1D\"\n            }\n        ]\n\n## Assign Task to a Project [POST /api/projects/:id/tasks/]\n- Request: Assign Task to a Project\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            taskId: \"5OM3R4ND0M1D\"\n        }\n    \n- Response: 200 OK\n\n## Remove Task from a Project [DELETE /api/projects/:id/tasks/:taskId]\n- Request: Remove Task from a Project\n\n- Response: 200 OK\n\n## Filter Task by Project Name [GET /api/projects/:projectName/tasks]\n- Request: Filter Task by Project Name\n\n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Task Title\",\n                \"description\": \"Task Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\",\n                \"status\": \"pending\",\n                \"priority\": \"high\",\n                projectId: \"5OM3R4ND0M1D\"\n            }\n        ]\n\n## Sort Project by start date, due date [GET /api/projects/sort/:sortBy]\n- Request: Sort Project by start date, due date\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"dateType\": \"startDate\",\n        }\n    \n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Project Title\",\n                \"description\": \"Project Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\"\n            }\n        ]\n\n# API usage and endpoints for aggregatiors\n## Get task by due date [POST /aggregators/tasks]\n- Request: Get task by due date\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"dueDate\": \"23/09/2022\"\n        }\n    \n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Task Title\",\n                \"description\": \"Task Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\",\n                \"status\": \"pending\",\n                \"priority\": \"high\",\n                projectId: \"5OM3R4ND0M1D\"\n            }\n        ]\n## Get project by due date [POST /aggregators/projects]\n- Request: Get project by due date\n    - Headers\n        Content-Type: application/json\n\n    - Body\n        {\n            \"dueDate\": \"23/09/2022\"\n        }\n    \n- Response: 200 OK\n    - Body\n        [\n            {\n                \"title\": \"Project Title\",\n                \"description\": \"Project Description\",\n                \"startDate\": \"23/09/2022\",\n                \"dueDate\": \"23/09/2022\"\n            }\n        ]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Ftodo_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkryptonbd%2Ftodo_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Ftodo_api/lists"}