{"id":30656274,"url":"https://github.com/ankman007/books-api-drf","last_synced_at":"2026-04-19T05:33:07.356Z","repository":{"id":306722499,"uuid":"1026785978","full_name":"ankman007/books-api-drf","owner":"ankman007","description":"A simple RESTful API built with DRF to manage a collection of books. It supports full CRUD operations along with filtering and pagination.","archived":false,"fork":false,"pushed_at":"2025-07-29T06:36:43.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T08:46:18.556Z","etag":null,"topics":["django-filter","django-rest-framework","sqlite","swagger-ui"],"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/ankman007.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":"2025-07-26T15:57:45.000Z","updated_at":"2025-07-29T06:36:47.000Z","dependencies_parsed_at":"2025-07-29T08:46:21.344Z","dependency_job_id":null,"html_url":"https://github.com/ankman007/books-api-drf","commit_stats":null,"previous_names":["ankman007/book-api","ankman007/books-api-drf"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ankman007/books-api-drf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankman007%2Fbooks-api-drf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankman007%2Fbooks-api-drf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankman007%2Fbooks-api-drf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankman007%2Fbooks-api-drf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankman007","download_url":"https://codeload.github.com/ankman007/books-api-drf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankman007%2Fbooks-api-drf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971422,"owners_count":25024094,"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-08-31T02:00:09.071Z","response_time":79,"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":["django-filter","django-rest-framework","sqlite","swagger-ui"],"created_at":"2025-08-31T10:43:52.036Z","updated_at":"2025-10-17T17:16:25.705Z","avatar_url":"https://github.com/ankman007.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Description\nA simple RESTful API built with Django REST Framework to manage a collection of books. It supports full CRUD operations along with filtering and pagination.\n\n🔗 [Medium Article: Building a Simple REST API with DRF](https://medium.com/@ankitpoudel_/build-a-simple-rest-api-with-django-rest-framework-a-step-by-step-guide-bc996201d248)\n\n## Tech Stack\n- Django REST Framework\n- SQLite \n- django-filter (for filtering)\n- Swagger (for documentation)\n\n## API Endpoints\n- books/\nHandles GET (list books with filtering and pagination) and POST (create new book).\n\n- books/\u003cint:id\u003e/\nHandles GET (retrieve), PUT (update), PATCH (partial update), and DELETE (remove) a specific book by ID.\n\n## Filtering \u0026 Pagination\n- Case-insensitive filtering on `title` and `author`\n- Example: \n`/books/?author=ankit\u0026page=2`\n\n- Pagination is enabled by DRF's `PageNumberPagination`:\n```\n{\n  \"count\": 6,\n  \"next\": \"http://localhost:8000/books/?page=2\",\n  \"previous\": null,\n  \"results\": [\n    { \"title\": \"Good Book\", ... },\n    ...\n  ]\n}\n```\n\n## Project Setup Guide\n1. cd into project directory\n2. Create a new .env file by copying the env.example file\n3. Open the .env file and update it with your credentials as needed\n4. Install dependencies `pip install -r requirements.txt`\n5. Run migrations `python manage.py migrate`\n6. Start the server `python manage.py runserver`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankman007%2Fbooks-api-drf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankman007%2Fbooks-api-drf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankman007%2Fbooks-api-drf/lists"}