{"id":25209117,"url":"https://github.com/ananthakrishnan12/blog-api-django","last_synced_at":"2026-04-28T08:06:15.131Z","repository":{"id":276635461,"uuid":"929813186","full_name":"Ananthakrishnan12/Blog-API-Django","owner":"Ananthakrishnan12","description":"🚀 Django REST API for a Blog – A backend API for managing blog posts, including authentication, pagination, throttling, and CRUD operations using Django Rest Framework (DRF).  ","archived":false,"fork":false,"pushed_at":"2025-02-09T15:04:41.000Z","size":39634,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T15:27:38.960Z","etag":null,"topics":["django-rest-framework","djnago-filters","models","pagination","postman","python3","serialization","throttling","token-based-authentication","views"],"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/Ananthakrishnan12.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":"2025-02-09T13:19:58.000Z","updated_at":"2025-02-09T15:04:44.000Z","dependencies_parsed_at":"2025-02-09T15:38:35.693Z","dependency_job_id":null,"html_url":"https://github.com/Ananthakrishnan12/Blog-API-Django","commit_stats":null,"previous_names":["ananthakrishnan12/blog-api-django"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananthakrishnan12%2FBlog-API-Django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananthakrishnan12%2FBlog-API-Django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananthakrishnan12%2FBlog-API-Django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananthakrishnan12%2FBlog-API-Django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ananthakrishnan12","download_url":"https://codeload.github.com/Ananthakrishnan12/Blog-API-Django/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289878,"owners_count":20914552,"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","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-rest-framework","djnago-filters","models","pagination","postman","python3","serialization","throttling","token-based-authentication","views"],"created_at":"2025-02-10T13:15:21.402Z","updated_at":"2026-04-28T08:06:05.078Z","avatar_url":"https://github.com/Ananthakrishnan12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog-API-Django\nThis is a RESTful API for a blog platform built using Django and Django Rest Framework (DRF). \nIt provides endpoints for managing blog posts, user authentication, pagination, and request throttling.\n\n## Features\n- 🔹 **CRUD Operations**: Create, Read, Update, and Delete blog posts.\n- 🔹 **User Authentication**: Token-based authentication using DRF.\n- 🔹 **Pagination**: Efficiently fetch blog posts with paginated results.\n- 🔹 **Throttling**: Rate limit requests to prevent abuse.\n- 🔹 **Filtering \u0026 Searching**: Retrieve blog posts based on different criteria.\n\n## Tech Stack\n- **Backend**: Django, Django Rest Framework (DRF)\n- **Database**: SQLite \n- **Authentication**: DRF Token Authentication \n\n## Database Model\n\n### BlogPost  \nThe **BlogPost** model represents a blog post created by a user.\n\n#### Fields:  \n- **title** (*CharField*): Stores the blog post title (max length: 100).  \n- **content** (*TextField*): Contains the blog content.  \n- **author** (*ForeignKey to User*): Links the post to a registered user.  \n- **created_at** (*DateTimeField*): Automatically records when the post was created.  \n- **updated_at** (*DateTimeField*): Automatically updates when the post is modified.  \n- **is_published** (*BooleanField*): Defines whether the post is published (default: `False`).  \n- **total_likes** (*IntegerField*): Stores the number of likes on the post (default: `0`).  \n\n---\n\n### Comment  \nThe **Comment** model allows users to leave comments on a blog post.\n\n#### Fields:  \n- **comment_user** (*ForeignKey to User*): The user who commented.  \n- **likes** (*PositiveIntegerField*): Tracks likes (either `0` or `1`, using validators).  \n- **comments** (*TextField*): Stores the actual comment text.  \n- **blogpost** (*ForeignKey to BlogPost*): Links the comment to a specific blog post.  \n- **created** (*DateTimeField*): Timestamp when the comment was created.  \n- **updated** (*DateTimeField*): Timestamp when the comment was last updated.  \n\n\n# API Testing Tool: 🔬 POSTMAN \n\n# Endpoints: (with Demo Gif) wait for a few seconds...\n\n- **Register**  \n  ![Register API Demo](https://github.com/Ananthakrishnan12/Blog-API-Django/blob/main/demo/Blog-API-registeration.gif?raw=true)  \n\n- **Login**  \n  ![Login API Demo](https://github.com/Ananthakrishnan12/Blog-API-Django/blob/main/demo/Blog-API-login.gif?raw=true)  \n\n- **Post Create \u0026 Get (List)**  \n  ![BlogPost Create \u0026 List API Demo](https://github.com/Ananthakrishnan12/Blog-API-Django/blob/main/demo/Blog-API-Post-Create-_-List-.gif?raw=true)  \n\n- **Post Comment Create \u0026 Get (List)**  \n  ![BlogPost Comment Create \u0026 List API Demo](https://github.com/Ananthakrishnan12/Blog-API-Django/blob/main/demo/Blog-API-Post-Comment-Create-_-List-.gif?raw=true)  \n\n- **Logout**  \n  ![Logout API Demo](https://github.com/Ananthakrishnan12/Blog-API-Django/blob/main/demo/Blog-API-logout.gif?raw=true)  \n\n\n\n# FrontEnd Integration : In Progress...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananthakrishnan12%2Fblog-api-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fananthakrishnan12%2Fblog-api-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananthakrishnan12%2Fblog-api-django/lists"}