{"id":15903458,"url":"https://github.com/vfdev-5/testrestapi","last_synced_at":"2025-04-02T20:15:20.377Z","repository":{"id":149001729,"uuid":"41749284","full_name":"vfdev-5/TestRestApi","owner":"vfdev-5","description":"A test rest api with DRF","archived":false,"fork":false,"pushed_at":"2015-09-01T22:03:26.000Z","size":552,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T10:43:51.886Z","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/vfdev-5.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}},"created_at":"2015-09-01T16:09:47.000Z","updated_at":"2015-09-01T21:52:19.000Z","dependencies_parsed_at":"2023-04-06T22:31:53.455Z","dependency_job_id":null,"html_url":"https://github.com/vfdev-5/TestRestApi","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/vfdev-5%2FTestRestApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2FTestRestApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2FTestRestApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2FTestRestApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfdev-5","download_url":"https://codeload.github.com/vfdev-5/TestRestApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246884766,"owners_count":20849554,"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-10-06T12:01:59.870Z","updated_at":"2025-04-02T20:15:20.343Z","avatar_url":"https://github.com/vfdev-5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Test REST Api\n\nExample of REST Api with users\n- Django\n- Django REST Framework\n- ...\n\n## API description :\n\nThe api stores photos/comments that authenticated users can upload to the api.\n\n#### Any user can request all images\n    (GET) \u003cURL\u003e/api/photo/\n\nor a particular image by its id, e.g:\n\n    (GET) \u003cURL\u003e/api/photo/1/\n\n#### Any user can request all comments\n    (GET) \u003cURL\u003e/api/comment/\n\n\n#### Authenticated user can get its token (using CURL):\n\n    curl -X POST\n         -H 'Content-Type: application/json'\n         -d '{\"username\":\"your_username\", \"password\":\"your_password\"}'\n         \u003cURL\u003e/api/auth-token/\n\nThe response looks like : \n    \n    {\"token\":\"20bc9.......82ee\"}\n\n#### An authenticated user can upload an image:\n\n    curl -S \u003cURL\u003e/api/photo/\n            -F \"image=@/path/to/file.jpg;filename=uploaded_file_name.jpg;type=image/*\"\n            -H 'Authorization: Token \u003cuser_token\u003e'\n\n#### An authenticated user can create a comment:\n\n    curl -X POST \n         -H 'Content-Type: application/json' \n         -d '{\"comment\":\"This is another test comment created by a user\"}' \n         -H 'Authorization: Token \u003cuser_token\u003e'\n         \u003cURL\u003e/api/comment/\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfdev-5%2Ftestrestapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfdev-5%2Ftestrestapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfdev-5%2Ftestrestapi/lists"}