{"id":23521280,"url":"https://github.com/vaaralav/flask-todo-api","last_synced_at":"2026-04-29T17:01:32.264Z","repository":{"id":84142892,"uuid":"126151260","full_name":"vaaralav/flask-todo-api","owner":"vaaralav","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-28T11:49:53.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T03:32:50.427Z","etag":null,"topics":["api","flask","python","sqlalchemy","todo"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaaralav.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":"2018-03-21T09:03:37.000Z","updated_at":"2018-03-28T11:49:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"aed84711-2203-4a5d-bde8-914915231fb0","html_url":"https://github.com/vaaralav/flask-todo-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vaaralav/flask-todo-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fflask-todo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fflask-todo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fflask-todo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fflask-todo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaaralav","download_url":"https://codeload.github.com/vaaralav/flask-todo-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fflask-todo-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["api","flask","python","sqlalchemy","todo"],"created_at":"2024-12-25T17:11:33.901Z","updated_at":"2026-04-29T17:01:32.227Z","avatar_url":"https://github.com/vaaralav.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-todo-api\n\nMy take on learning some Python and Flask.\n\n\u003c!-- TOC depthFrom:2 depthTo:3 withLinks:1 updateOnSave:1 orderedList:0 --\u003e\n\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Running the thing](#running-the-thing)\n- [Lint](#lint)\n- [API](#api)\n\t- [`GET /todo/api/tasks`](#get-todoapitasks)\n\t- [`POST /todo/api/tasks`](#post-todoapitasks)\n\t- [`GET /todo/api/tasks/:task_id`](#get-todoapitaskstaskid)\n\t- [`PUT /todo/api/tasks/:task_id`](#put-todoapitaskstaskid)\n\t- [`DELETE /todo/api/tasks/:task_id`](#delete-todoapitaskstaskid)\n\t- [TODO! /todo/api/users endpoints!](#todo-todoapiusers-endpoints)\n\t- [`GET /todo/api/health`](#get-todoapihealth)\n\n\u003c!-- /TOC --\u003e\n\n## Prerequisites\n\n* Python 3\n* [Virtualenv](http://sourabhbajaj.com/mac-setup/Python/virtualenv.html)\n\n## Installation\n\n```sh\ngit clone git@github.com:vaaralav/flask-todo-api.git\ncd flask-todo-api\nvirtualenv .venv # Create Virtualenv\nsource .venv/bin/activate # Use the virtualenv\npip install -r requirements.txt # Install the dependencies\n```\n\n## Running the thing\n\n```sh\npython app.py\n```\n\n## Lint\n\nTo get somewhat readable linter output run the command below.\n\n```sh\npylint --rcfile=pylintrc --output-format=colorized *.py\n```\n\n## API\n\n### `GET /todo/api/tasks`\n\nLists tasks. By default doesn't filter tasks.\n\n#### Filters\n\nTasks can be filtered using query string and the following Filters\n\n* `done` _0 or 1_: Get only done (1) or undone (0) tasks.\n\n#### Example\n\n##### Request\n\n```http\nGET /todo/api/tasks?done=0 HTTP/1.1\nHost: localhost:5000\nContent-Type: application/json\nAuthorization: Basic \u003cyour_basic_authentication_token_here\u003e\n```\n\n##### Response: 200 OK\n\n```json\n[\n  {\n    \"description\": \"Flask especially\",\n    \"done\": false,\n    \"id\": 2,\n    \"title\": \"Learn Python\",\n    \"uri\": \"http://localhost:5000/todo/api/tasks/2\",\n    \"user\": 3,\n    \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n  },\n  {\n    \"description\": \"Such wow\",\n    \"done\": false,\n    \"id\": 3,\n    \"title\": \"Learn Python\",\n    \"uri\": \"http://localhost:5000/todo/api/tasks/3\",\n    \"user\": 3,\n    \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n  },\n  {\n    \"description\": \"\",\n    \"done\": false,\n    \"id\": 4,\n    \"title\": \"Buy stuff\",\n    \"uri\": \"http://localhost:5000/todo/api/tasks/4\",\n    \"user\": 3,\n    \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n  },\n  {\n    \"description\": \"\",\n    \"done\": false,\n    \"id\": 5,\n    \"title\": \"Buy stuff\",\n    \"uri\": \"http://localhost:5000/todo/api/tasks/5\",\n    \"user\": 3,\n    \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n  }\n]\n```\n\n### `POST /todo/api/tasks`\n\nCreate new task.\n\n#### Example\n\n##### Request\n\n```http\nPOST /todo/api/tasks HTTP/1.1\nHost: localhost:5000\nContent-Type: application/json\nAuthorization: Basic \u003cyour_basic_authentication_token_here\u003e\nCache-Control: no-cache\nPostman-Token: ef8b66ff-9ff1-4e11-a4e2-bda067aaa39e\n\n{\n    \"title\": \"Be awesome\",\n    \"description\": \"\",\n\t\t\"user\": 3\n}\n```\n\n##### Response: 201 Created\n\n```json\n{\n  \"description\": \"\",\n  \"done\": false,\n  \"id\": 8,\n  \"title\": \"Be awesome\",\n  \"uri\": \"http://localhost:5000/todo/api/tasks/8\",\n  \"user\": 3,\n  \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n}\n```\n\n### `GET /todo/api/tasks/:task_id`\n\nGet single task.\n\n#### Example\n\n##### Request\n\n```http\nGET /todo/api/tasks/7 HTTP/1.1\nHost: localhost:5000\nContent-Type: application/json\nAuthorization: Basic \u003cyour_basic_authentication_token_here\u003e\n```\n\n#### Response: 200 OK\n\n```json\n{\n  \"description\": \"😇\",\n  \"done\": true,\n  \"id\": 7,\n  \"title\": \"Foobar\",\n  \"uri\": \"http://localhost:5000/todo/api/tasks/7\",\n  \"user\": 3,\n  \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n}\n```\n\n### `PUT /todo/api/tasks/:task_id`\n\nUpdate a task.\n\n#### Example\n\n##### Request\n\n```http\nPUT /todo/api/tasks/7 HTTP/1.1\nHost: localhost:5000\nContent-Type: application/json\nAuthorization: Basic \u003cyour_basic_authentication_token_here\u003e\nCache-Control: no-cache\nPostman-Token: ab6d272a-95d1-4ffe-ba22-2f4b820a6a5d\n\n{\n    \"done\": false\n}\n```\n\n##### Response: 200 OK\n\n```json\n{\n  \"description\": \"😇\",\n  \"done\": false,\n  \"id\": 7,\n  \"title\": \"Foobar\",\n  \"uri\": \"http://localhost:5000/todo/api/tasks/7\",\n  \"user\": 3,\n  \"user_uri\": \"http://localhost:5000/todo/api/users/3\"\n}\n```\n\n### `DELETE /todo/api/tasks/:task_id`\n\nRemove a task.\n\n#### Example\n\n##### Request\n\n```http\nDELETE /todo/api/tasks/7 HTTP/1.1\nHost: localhost:5000\nContent-Type: application/json\nAuthorization: Basic \u003cyour_basic_authentication_token_here\u003e\n\n{\n    \"done\": false\n}\n```\n\n##### Response: 200 OK\n\n```json\n{\n  \"result\": true\n}\n```\n\n### TODO! /todo/api/users endpoints!\n\n### `GET /todo/api/health`\n\nHealth check.\n\n#### Example Response\n\n200 OK\n\n```json\n{\n  \"health\": \"ok!\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaralav%2Fflask-todo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaaralav%2Fflask-todo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaralav%2Fflask-todo-api/lists"}