{"id":20535048,"url":"https://github.com/mmallikarjun2312/todo_application_api","last_synced_at":"2026-04-12T01:41:44.564Z","repository":{"id":233823268,"uuid":"787424155","full_name":"MMALLIKARJUN2312/Todo_Application_API","owner":"MMALLIKARJUN2312","description":"CRUD Operations on Todo_Application_Database using NodeJS, Express JS, SQLite we can perform various operations on the database like GET (Read) , POST (Create) , PUT (Update) and DELETE(Delete). API'S can retrieve various queries using path parameters and query parameters.","archived":false,"fork":false,"pushed_at":"2024-04-17T10:38:05.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T13:48:49.559Z","etag":null,"topics":["crud-api","database","expressjs","javascript","nodejs","sqlite3"],"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/MMALLIKARJUN2312.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}},"created_at":"2024-04-16T13:51:34.000Z","updated_at":"2024-04-27T14:55:48.000Z","dependencies_parsed_at":"2024-04-17T12:08:35.723Z","dependency_job_id":"ab7b3ed7-4602-4307-a79d-197660fff3e6","html_url":"https://github.com/MMALLIKARJUN2312/Todo_Application_API","commit_stats":null,"previous_names":["mmallikarjun2312/todo_application_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMALLIKARJUN2312%2FTodo_Application_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMALLIKARJUN2312%2FTodo_Application_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMALLIKARJUN2312%2FTodo_Application_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMALLIKARJUN2312%2FTodo_Application_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MMALLIKARJUN2312","download_url":"https://codeload.github.com/MMALLIKARJUN2312/Todo_Application_API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138821,"owners_count":20078006,"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":["crud-api","database","expressjs","javascript","nodejs","sqlite3"],"created_at":"2024-11-16T00:29:07.831Z","updated_at":"2026-04-12T01:41:39.536Z","avatar_url":"https://github.com/MMALLIKARJUN2312.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo Application\n\nGiven an `app.js` file and an empty database file `todoApplication.db`.\n\nCreate a table with the name `todo` with the following columns,\n\n**Todo Table**\n\n| Column   | Type    |\n| -------- | ------- |\n| id       | INTEGER |\n| todo     | TEXT    |\n| priority | TEXT    |\n| status   | TEXT    | \n\nand write APIs to perform operations on the table `todo`,\n\n\u003cMultiLineNote\u003e\n  \n  - Replace the spaces in URL with `%20`.\n  - Possible values for `priority` are `HIGH`, `MEDIUM`, and `LOW`.\n  - Possible values for `status` are `TO DO`, `IN PROGRESS`, and `DONE`.\n\u003c/MultiLineNote\u003e\n\n### API 1\n\n#### Path: `/todos/`\n\n#### Method: `GET`\n\n- **Scenario 1**\n\n  - **Sample API**\n    ```\n    /todos/?status=TO%20DO\n    ```\n  - **Description**:\n\n    Returns a list of all todos whose status is 'TO DO'\n\n  - **Response**\n\n    ```\n    [\n      {\n        id: 1,\n        todo: \"Watch Movie\",\n        priority: \"LOW\",\n        status: \"TO DO\"\n      },\n      ...\n    ]\n    ```\n\n- **Scenario 2**\n\n  - **Sample API**\n    ```\n    /todos/?priority=HIGH\n    ```\n  - **Description**:\n\n    Returns a list of all todos whose priority is 'HIGH'\n\n  - **Response**\n\n    ```\n    [\n      {\n        id: 2,\n        todo: \"Learn Node JS\",\n        priority: \"HIGH\",\n        status: \"IN PROGRESS\"\n      },\n      ...\n    ]\n    ```\n\n- **Scenario 3**\n\n  - **Sample API**\n    ```\n    /todos/?priority=HIGH\u0026status=IN%20PROGRESS\n    ```\n  - **Description**:\n\n    Returns a list of all todos whose priority is 'HIGH' and status is 'IN PROGRESS'\n\n  - **Response**\n\n    ```\n    [\n      {\n        id: 2,\n        todo: \"Learn Node JS\",\n        priority: \"HIGH\",\n        status: \"IN PROGRESS\"\n      },\n      ...\n    ]\n    ```\n\n- **Scenario 4**\n\n  - **Sample API**\n    ```\n    /todos/?search_q=Play\n    ```\n  - **Description**:\n\n    Returns a list of all todos whose todo contains 'Play' text\n\n  - **Response**\n\n    ```\n    [\n      {\n        id: 4,\n        todo: \"Play volleyball\",\n        priority: \"MEDIUM\",\n        status: \"DONE\"\n      },\n      ...\n    ]\n    ```\n\n### API 2\n\n#### Path: `/todos/:todoId/`\n\n#### Method: `GET`\n\n#### Description:\n\nReturns a specific todo based on the todo ID\n\n#### Response\n\n```\n{\n  id: 2,\n  todo: \"Learn JavaScript\",\n  priority: \"HIGH\",\n  status: \"DONE\"\n}\n```\n\n### API 3\n\n#### Path: `/todos/`\n\n#### Method: `POST`\n\n#### Description:\n\nCreate a todo in the todo table,\n\n#### Request\n\n```\n{\n  \"id\": 10,\n  \"todo\": \"Finalize event theme\",\n  \"priority\": \"LOW\",\n  \"status\": \"TO DO\"\n}\n```\n\n#### Response\n\n```\nTodo Successfully Added\n```\n\n### API 4\n\n#### Path: `/todos/:todoId/`\n\n#### Method: `PUT`\n\n#### Description:\n\nUpdates the details of a specific todo based on the todo ID\n\n- **Scenario 1**\n\n  - **Request**\n    ```\n    {\n      \"status\": \"DONE\"\n    }\n    ```\n  - **Response**\n\n    ```\n    Status Updated\n    ```\n\n- **Scenario 2**\n\n  - **Request**\n    ```\n    {\n      \"priority\": \"HIGH\"\n    }\n    ```\n  - **Response**\n\n    ```\n    Priority Updated\n    ```\n\n- **Scenario 3**\n\n  - **Request**\n    ```\n    {\n      \"todo\": \"Some task\"\n    }\n    ```\n  - **Response**\n\n    ```\n    Todo Updated\n    ```\n\n### API 5\n\n#### Path: `/todos/:todoId/`\n\n#### Method: `DELETE`\n\n#### Description:\n\nDeletes a todo from the todo table based on the todo ID\n\n#### Response\n\n```\nTodo Deleted\n```\n\n\u003cbr/\u003e\n\nUse `npm install` to install the packages.\n\n**Export the express instance using the default export syntax.**\n\n**Use Common JS module syntax.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmallikarjun2312%2Ftodo_application_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmallikarjun2312%2Ftodo_application_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmallikarjun2312%2Ftodo_application_api/lists"}