{"id":15375137,"url":"https://github.com/ozansz/drivebuddy-task","last_synced_at":"2026-05-15T21:06:11.447Z","repository":{"id":109435798,"uuid":"125091052","full_name":"ozansz/drivebuddy-task","owner":"ozansz","description":"Driver model implementation using Django REST Framework","archived":false,"fork":false,"pushed_at":"2018-03-13T20:42:31.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-02T00:27:53.895Z","etag":null,"topics":["django","django-rest-framework","python","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozansz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-13T17:41:01.000Z","updated_at":"2018-03-13T20:42:32.000Z","dependencies_parsed_at":"2023-03-30T23:18:20.344Z","dependency_job_id":null,"html_url":"https://github.com/ozansz/drivebuddy-task","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Fdrivebuddy-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Fdrivebuddy-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Fdrivebuddy-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozansz%2Fdrivebuddy-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozansz","download_url":"https://codeload.github.com/ozansz/drivebuddy-task/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931895,"owners_count":20695964,"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","django-rest-framework","python","rest-api"],"created_at":"2024-10-01T14:01:29.864Z","updated_at":"2026-05-15T21:06:06.430Z","avatar_url":"https://github.com/ozansz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drivebuddy-task\n\nDriver model implementation using Django REST Framework\n\n## Installation\n\nBefore cloning the repository, you need `django` and `djangorestframework` packages installed.\n\nTo install them, run the command below:\n\n```bash\npip install django djangorestframework\n```\n\nThen, you can clone the repo:\n\n```bash\ngit clone https://github.com/ozansz/drivebuddy-task\ncd ./drivebuddy-task\n```\n\nAnd to run the server, run the command below:\n\n```bash\npython manage.py makemigrations drivers\npython manage.py migrate\npython manage.py runserver\n```\n\n## API\n\nThe RESTful API implements CRUD functionality for the `Driver` model.\n\n### The Driver Model\n\nThe `Driver` model has three fields:\n\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003ename\u003c/b\u003e  - Name of the driver\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003eemail\u003c/b\u003e - Unique email of the driver\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003escore\u003c/b\u003e - Score of the driver\u003c/li\u003e\n\u003c/ul\u003e\n\n### API Endpoints\n\nThe API endpoints for the `Driver` model are under the `/drivers` path.\n\n#### Create driver\n\nRequest: `POST`\n\nPath:    `/drivers/`\n\nRequest body:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`name`: \u003cdriver_name\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`email`: \u003cdriver_email\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`score`: \u003cdriver_score\u003e\n\n\u003cbr /\u003e\n\nResponse: `201 - Created`\n\n\u003cbr /\u003e\n\n#### Read driver\n\nRequest: `GET`\n\nPath:    `/drivers/\u003cpk\u003e`\n\n\u003cbr /\u003e\n\nResponse: `200 - OK`\n\nResponse body:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`url`: \u003cunique_path_of_driver_record\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`name`: \u003cdriver_name\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`email`: \u003cdriver_email\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`score`: \u003cdriver_score\u003e\n\n\u003cbr /\u003e\n\n#### Update driver\n\nRequest: `PUT`\n\nPath:    `/drivers/\u003cpk\u003e`\n\nRequest body:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`name`: \u003cdriver_name\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`email`: \u003cdriver_email\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`score`: \u003cdriver_score\u003e\n\n\u003cbr /\u003e\n\nResponse: `200 - OK`\n\nResponse body:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`url`: \u003cunique_path_of_driver_record\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`name`: \u003cdriver_name\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`email`: \u003cdriver_email\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`score`: \u003cdriver_score\u003e\n\n\u003cbr /\u003e\n\n#### Delete driver\n\nRequest: `DELETE`\n\nPath:    `/drivers/\u003cpk\u003e`\n\n\u003cbr /\u003e\n\nResponse: `204 - No Content`\n\n## Tests\n\nThere are 6 tests implemented to test the CRUD functionality of the API.\n\nYou can run the tests running the command below:\n\n```bash\npython manage.py test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozansz%2Fdrivebuddy-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozansz%2Fdrivebuddy-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozansz%2Fdrivebuddy-task/lists"}