{"id":15142591,"url":"https://github.com/zeroniki/fastapi-restapi-example","last_synced_at":"2026-02-18T13:36:52.543Z","repository":{"id":257553965,"uuid":"858627385","full_name":"ZeroNiki/FastAPI-RestAPI-Example","owner":"ZeroNiki","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-17T09:58:55.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-14T12:44:54.451Z","etag":null,"topics":["fastapi","python3","rest-api","restapi","sqlalchemy","sqlite"],"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/ZeroNiki.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-09-17T08:45:34.000Z","updated_at":"2024-09-17T09:58:58.000Z","dependencies_parsed_at":"2024-09-17T11:19:08.657Z","dependency_job_id":null,"html_url":"https://github.com/ZeroNiki/FastAPI-RestAPI-Example","commit_stats":null,"previous_names":["zeroniki/fastapi-restapi-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZeroNiki/FastAPI-RestAPI-Example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FFastAPI-RestAPI-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FFastAPI-RestAPI-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FFastAPI-RestAPI-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FFastAPI-RestAPI-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZeroNiki","download_url":"https://codeload.github.com/ZeroNiki/FastAPI-RestAPI-Example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FFastAPI-RestAPI-Example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279219255,"owners_count":26128685,"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-10-16T02:00:06.019Z","response_time":53,"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":["fastapi","python3","rest-api","restapi","sqlalchemy","sqlite"],"created_at":"2024-09-26T09:42:58.825Z","updated_at":"2025-10-16T17:11:23.876Z","avatar_url":"https://github.com/ZeroNiki.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple implementation of RestAPI (FastAPI)\n\n[For Django](https://github.com/ZeroNiki/Django-RestAPI-Example)\u003cbr\u003e\nA simple example of using RestAPi on FastAPI\n\n## Install\n\n```bash\ngit clone https://github.com/ZeroNiki/FastAPI-RestAPI-Example.git\n\ncd FastAPI-RestAPI-Example\n```\n\n```bash\npython3 -m venv venv\n\nsource venv/bin/activate\n\npip insatll -r requirements.txt\n```\n\n```bash\nalembic revision --autogenerate -m \"INIT\"\n\nalembic upgrade head\n```\n\n```bash\nuvicorn start:app --reload\n```\n\ngo to http://localhost:8000/docs\u003cbr\u003e\nEnjoy!\n\n## Usage\n\n### Curl\n\nget all:\n\n```bash\ncurl --request GET --url \"localhost:8000/operations/data\"\n```\n\nget todo:\n\n```bash\ncurl --request GET --url \"localhost:8000/operations/task/{id}\"\n```\n\nadd todo:\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n--request POST \\\n--data '{\"title\": \"title test\"}' \\\nhttp://127.0.0.1:8000/operations/add\n```\n\nUpdate todo:\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n--request PUT \\\n--data '{\"title\": \"Update title test\"}' \\\nhttp://127.0.0.1:8000/operations/update/{id}\n```\n\nDelete todo:\n\n```bash\ncurl --request DELETE \"localhost:8000/operations/delete/{id}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroniki%2Ffastapi-restapi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroniki%2Ffastapi-restapi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroniki%2Ffastapi-restapi-example/lists"}