{"id":18622015,"url":"https://github.com/joshidivanshu/blog-backend-using-fastapi-jwt-authentication","last_synced_at":"2026-04-30T07:40:37.674Z","repository":{"id":212219834,"uuid":"369212966","full_name":"joshidivanshu/Blog-Backend-using-FastAPI-JWT-Authentication","owner":"joshidivanshu","description":"A Blog app backend created using FastAPI. Can perform test queries on the provided link just replace http://localhost:8000/ with a website link mentioned below. You can perform this using Postman or curl","archived":false,"fork":false,"pushed_at":"2021-05-20T13:18:12.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T08:09:55.197Z","etag":null,"topics":["alembic","api","asychronous","backend","fastapi","jose-jwt","jwt-authentication","oauth2","python-3","sqlaclhemy","sqlite3","webdevelopment"],"latest_commit_sha":null,"homepage":"https://ohogkv.deta.dev/","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/joshidivanshu.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}},"created_at":"2021-05-20T13:12:48.000Z","updated_at":"2024-06-18T20:34:09.000Z","dependencies_parsed_at":"2023-12-13T05:47:13.262Z","dependency_job_id":null,"html_url":"https://github.com/joshidivanshu/Blog-Backend-using-FastAPI-JWT-Authentication","commit_stats":null,"previous_names":["joshidivanshu/blog-backend-using-fastapi-jwt-authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joshidivanshu/Blog-Backend-using-FastAPI-JWT-Authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshidivanshu%2FBlog-Backend-using-FastAPI-JWT-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshidivanshu%2FBlog-Backend-using-FastAPI-JWT-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshidivanshu%2FBlog-Backend-using-FastAPI-JWT-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshidivanshu%2FBlog-Backend-using-FastAPI-JWT-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshidivanshu","download_url":"https://codeload.github.com/joshidivanshu/Blog-Backend-using-FastAPI-JWT-Authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshidivanshu%2FBlog-Backend-using-FastAPI-JWT-Authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32458237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["alembic","api","asychronous","backend","fastapi","jose-jwt","jwt-authentication","oauth2","python-3","sqlaclhemy","sqlite3","webdevelopment"],"created_at":"2024-11-07T04:14:31.608Z","updated_at":"2026-04-30T07:40:37.647Z","avatar_url":"https://github.com/joshidivanshu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog FastAPI \u0026 Jwt Authentication\nAn api for Blog using FastAPI\n\n## Installing Requirements\n\nUse Virtualenv and install the packages.\n```\npip install -r requirements.txt\n```\n## Running the Project\n\nGo to the project dir and run the below line in the terminal.\n\n```\nuvicorn main:app --reload\n```\n\n## Interacting with the API\n\n1. To get all blogs\n```\n[GET]\nhttp://localhost:800/blog \nAuthorization : Bearer token\n```\n2. to get a blog with id\n```\n[GET]\nhttp://localhost:8000/blog/{blog_id}\nAuthorization : Bearer token\n```\n3. To create a blog\n```\n[POST] \nhttp://localhost:8000/blog\nin request body pass in json\n{\n    \"title\": \"title of the blog\",\n    \"body\": \"body of the blog\"\n}\nAuthorization : Bearer token\n```\n4. To delete a blog\n```\n[DELETE]\nhttp://localhost:8000/blog/{blog_id}\nAuthorization : Bearer token\n```\n5. To update a blog\n``` \n[PUT]\nhttp://localhost:8000/blog/{blog_id}\nin request body pass in json\n{\n    \"title\": \"title of the blog\",\n    \"body\": \"body of the blog\"\n}\nAuthorization : Bearer token\n```\n6. To retrieve access token\n``` \n[POST]\nhttp://localhost:8000/login\nin form passs\nusername \u0026 password\n``` \n7. To create a user\n``` \n[POST]\nhttp://localhost:8000/user\nAuthorization : Bearer token\n```\n\n### Default Username \u0026 Password\n\n``` \nusername = divanshu\npassword = divanshu\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshidivanshu%2Fblog-backend-using-fastapi-jwt-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshidivanshu%2Fblog-backend-using-fastapi-jwt-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshidivanshu%2Fblog-backend-using-fastapi-jwt-authentication/lists"}