{"id":23103311,"url":"https://github.com/themusharraf/fastapibooks","last_synced_at":"2026-05-07T14:41:59.856Z","repository":{"id":244346051,"uuid":"814978190","full_name":"themusharraf/FastAPIBooks","owner":"themusharraf","description":"A REST API built with Python and FastAPI, integrating with PostgreSQL for CRUD operations (Create, Read, Update, Delete) on books.","archived":false,"fork":false,"pushed_at":"2024-07-06T21:59:23.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T22:03:57.396Z","etag":null,"topics":["api","architecture","data-structures","database","fastapi","render","server","sqlalchemy"],"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/themusharraf.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,"zenodo":null}},"created_at":"2024-06-14T05:14:22.000Z","updated_at":"2025-03-08T21:09:36.000Z","dependencies_parsed_at":"2025-05-23T02:37:21.154Z","dependency_job_id":null,"html_url":"https://github.com/themusharraf/FastAPIBooks","commit_stats":null,"previous_names":["themusharraf/bookapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/themusharraf/FastAPIBooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPIBooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPIBooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPIBooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPIBooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themusharraf","download_url":"https://codeload.github.com/themusharraf/FastAPIBooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themusharraf%2FFastAPIBooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32742558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","architecture","data-structures","database","fastapi","render","server","sqlalchemy"],"created_at":"2024-12-17T00:13:32.500Z","updated_at":"2026-05-07T14:41:59.836Z","avatar_url":"https://github.com/themusharraf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BookAPI Project architecture\n## Author: Musharraf 👽\n\n## BooksAPI endpoints\n\n![image](https://github.com/themusharraf/FastAPIBooks/assets/122869450/1517ab38-808e-4848-b8bb-9cd2667fe1bd)\n\n## BooksAPI ORM\n\n![image](https://github.com/themusharraf/FastAPIBooks/assets/122869450/aae7e4d1-2eb5-4efa-a9f8-74937c6a319d)\n\n## runner\n\n```shell\nuvicorn main:app --reload\n```\n\n\n## Example Endpoint for test User:\n\n```python\ndef test_get_user():\n    requests = client.get(\"/users/1\")\n    assert requests.status_code == 200\n    assert type(requests.json()['email']) == str\n    assert type(requests.json()['is_active']) == bool\n\n```\n## Example Endpoint for test Books:\n\n```python\ndef test_get_books():\n    requests = client.get(\"/books/\")\n    assert requests.status_code == 200\n    assert type(requests.json()) == list\n```\n   \n## Example Request for Updating User:\n### http\n\n```http\nPUT /users/1\nContent-Type: application/json\n\n{\n  \"username\": \"new_username\",\n  \"email\": \"new_email@example.com\",\n  \"is_active\": true,\n  \"password\": \"new_password\"\n}\n```\n## Example Request for Updating Book:\n### http\n\n```http\nPUT /books/1\nContent-Type: application/json\n\n{\n  \"title\": \"Updated Title\",\n  \"language\": \"English\",\n  \"isbn\": \"978-3-16-148410-0\",\n  \"pages\": 250\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemusharraf%2Ffastapibooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemusharraf%2Ffastapibooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemusharraf%2Ffastapibooks/lists"}