{"id":22509058,"url":"https://github.com/codegeek004/django_rest_framework","last_synced_at":"2025-03-28T00:21:07.402Z","repository":{"id":275369054,"uuid":"899515556","full_name":"codegeek004/django_rest_framework","owner":"codegeek004","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T14:22:32.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T15:28:11.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codegeek004.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":"2024-12-06T12:31:16.000Z","updated_at":"2025-03-12T14:22:35.000Z","dependencies_parsed_at":"2025-02-02T02:28:52.674Z","dependency_job_id":null,"html_url":"https://github.com/codegeek004/django_rest_framework","commit_stats":null,"previous_names":["codegeek004/django_rest_framework"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegeek004%2Fdjango_rest_framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegeek004%2Fdjango_rest_framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegeek004%2Fdjango_rest_framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegeek004%2Fdjango_rest_framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codegeek004","download_url":"https://codeload.github.com/codegeek004/django_rest_framework/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944908,"owners_count":20698137,"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":[],"created_at":"2024-12-07T01:26:52.637Z","updated_at":"2025-03-28T00:21:07.391Z","avatar_url":"https://github.com/codegeek004.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django REST Framework Tutorial\n\nThis project follows the official Django REST Framework (DRF) tutorial to learn and understand the basics of building APIs with Django.\n\n## Requirements\n\n-   Python 3.9\n-   Django\n-   djangorestframework\n\n## Installation\n\n1.  **Clone the repository**\n\n```bash\ngit clone https://github.com/codegeek004/django_rest_framework\ncd django_rest_framework\n\n```\n\n2.  **Create a virtual environment and activate it**\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate  # On Windows, use venv\\Scripts\\activate\n\n```\n\n3.  **Install the dependencies**\n\n```bash\npip install -r requirements.txt\n\n```\n\n## Running the Server\n\n```bash\npython manage.py runserver\n\n```\n\nBy default, the server will start at `http://127.0.0.1:8000`.\n\n## Project Overview\n\nThis project implements:\n\n-   Basic Django models.\n-   Serializers for transforming data into JSON.\n-   API views using Django REST Framework.\n-   URL routing for API endpoints.\n-   Browsable API interface provided by DRF.\n\n## API Endpoints\n\n-   `GET /api/items/`: List all items.\n-   `POST /api/items/`: Create a new item.\n-   `GET /api/items/{id}/`: Retrieve a specific item.\n-   `PUT /api/items/{id}/`: Update a specific item.\n-   `DELETE /api/items/{id}/`: Delete a specific item.\n\n## Testing the API\n\nYou can test the API using tools like:\n\n-   [Postman](https://www.postman.com/)\n-   `curl`\n-   Browsable API interface at `http://127.0.0.1:8000/api/`\n\n### Example Using Curl\n\n```bash\ncurl -X GET http://127.0.0.1:8000/api/items/\n\n```\n\n### Example Using Requests in Python\n\n```python\nimport requests\nresponse = requests.get(\"http://127.0.0.1:8000/api/items/\")\nprint(response.json())\n\n```\n\n## Note\n\n-   Replace `'127.0.0.1:8000'` with your actual API URL if different.\n-   Ensure the server is running before sending requests.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegeek004%2Fdjango_rest_framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegeek004%2Fdjango_rest_framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegeek004%2Fdjango_rest_framework/lists"}