{"id":27472944,"url":"https://github.com/pinsaraperera/blog_rest_api_django_framework","last_synced_at":"2026-05-16T08:40:52.827Z","repository":{"id":228397696,"uuid":"768989665","full_name":"PinsaraPerera/BLOG_REST_API_DJANGO_FRAMEWORK","owner":"PinsaraPerera","description":"This Django REST API project provides a comprehensive solution for managing blog posts, offering functionalities to create, read, update, and delete posts. Built with Django and Django Rest Framework.","archived":false,"fork":false,"pushed_at":"2024-03-18T14:47:42.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T04:08:56.620Z","etag":null,"topics":["backend","blogging","crud","django","restapi"],"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/PinsaraPerera.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}},"created_at":"2024-03-08T05:39:34.000Z","updated_at":"2024-03-13T13:02:55.000Z","dependencies_parsed_at":"2024-03-18T16:17:26.477Z","dependency_job_id":"40be3e6c-03d9-4dd7-8de3-7ce3185504ab","html_url":"https://github.com/PinsaraPerera/BLOG_REST_API_DJANGO_FRAMEWORK","commit_stats":null,"previous_names":["pinsaraperera/blog_rest_api_django_framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PinsaraPerera/BLOG_REST_API_DJANGO_FRAMEWORK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsaraPerera%2FBLOG_REST_API_DJANGO_FRAMEWORK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsaraPerera%2FBLOG_REST_API_DJANGO_FRAMEWORK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsaraPerera%2FBLOG_REST_API_DJANGO_FRAMEWORK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsaraPerera%2FBLOG_REST_API_DJANGO_FRAMEWORK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PinsaraPerera","download_url":"https://codeload.github.com/PinsaraPerera/BLOG_REST_API_DJANGO_FRAMEWORK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsaraPerera%2FBLOG_REST_API_DJANGO_FRAMEWORK/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261453130,"owners_count":23160455,"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":["backend","blogging","crud","django","restapi"],"created_at":"2025-04-16T03:55:32.254Z","updated_at":"2026-05-16T08:40:47.805Z","avatar_url":"https://github.com/PinsaraPerera.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django BlogPost API\n\n## Introduction\n\nWelcome to the Django BlogPost API repository. This REST API is developed using the Django Rest Framework (DRF) and allows users to perform CRUD operations on blog posts. It's designed for developers looking to integrate blog functionalities into their projects with minimal setup.\n\n## Features\n\n- **Create Blog Posts:** Users can create new blog posts by sending a POST request with the title, content, and author information.\n- **Read Blog Posts:** Users can retrieve a list of all blog posts or a single post by its ID.\n- **Update Blog Posts:** Existing blog posts can be updated by sending a PUT or PATCH request with new data.\n- **Delete Blog Posts:** Any blog post can be removed from the database by sending a DELETE request.\n\n## Installation\n\nFollow these steps to set up the API in your local development environment:\n\n1. Clone this repository to your local machine:\n   ```bash\n   git clone https://github.com/PinsaraPerera/BLOG_REST_API_DJANGO_FRAMEWORK.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd mysite\n   ```\n3. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n4. Run the migrations to create the database schema:\n   ```bash\n   python manage.py migrate\n   ```\n5. Finally, start the development server:\n   ```bash\n   python manage.py runserver\n   ```\n\nNow, the API should be accessible at `http://localhost:8000/`.\n\n## API Endpoints\n\nThe following endpoints are available:\n\n- **GET /blogposts/**: List all blog posts.\n- **POST /blogposts/**: Create a new blog post.\n- **GET /blogposts/\u003cid\u003e/**: Retrieve a blog post by ID.\n- **DELETE /blogposts/\u003cid\u003e/**: Delete a blog post by ID.\n\n## Usage Examples\n\nHere are some example usages of the API:\n\n### Creating a Blog Post\n\nRequest:\n\n```http\nPOST /blogposts/\nContent-Type: application/json\n\n{\n    \"id\": 1,\n    \"title\": \"testing\",\n    \"content\": \"testing content\",\n    \"published_date\": \"2024-03-08T05:45:57.498399Z\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinsaraperera%2Fblog_rest_api_django_framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinsaraperera%2Fblog_rest_api_django_framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinsaraperera%2Fblog_rest_api_django_framework/lists"}