{"id":20580062,"url":"https://github.com/iyashwantsaini/django-rest","last_synced_at":"2026-04-17T22:32:23.346Z","repository":{"id":112236253,"uuid":"338018316","full_name":"iyashwantsaini/Django-REST","owner":"iyashwantsaini","description":"API using Django Rest Framework","archived":false,"fork":false,"pushed_at":"2022-07-08T11:02:49.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T11:48:34.418Z","etag":null,"topics":["api-rest","authentication","django-rest-framework"],"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/iyashwantsaini.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":"2021-02-11T12:08:34.000Z","updated_at":"2022-07-08T11:02:52.000Z","dependencies_parsed_at":"2023-05-11T21:16:23.529Z","dependency_job_id":null,"html_url":"https://github.com/iyashwantsaini/Django-REST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iyashwantsaini/Django-REST","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2FDjango-REST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2FDjango-REST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2FDjango-REST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2FDjango-REST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyashwantsaini","download_url":"https://codeload.github.com/iyashwantsaini/Django-REST/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2FDjango-REST/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31948451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-rest","authentication","django-rest-framework"],"created_at":"2024-11-16T06:19:54.175Z","updated_at":"2026-04-17T22:32:23.322Z","avatar_url":"https://github.com/iyashwantsaini.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DJANGO-REST\n\nBasic REST-API\n- Serializers\n- Function based views\n- Class based views\n- Generic Views\n- Authentication\n- ViewSets\n- Generic ViewSets\n\n### Superuser\n- uname=\u003e user \n- passw=\u003e user\n- auth-token=\u003e 270801e49bafecbfdaf813f690b7c36a81e5eff7\n\n### Basic Auth\n- js-fetch()\n```\nvar myHeaders = new Headers();\nmyHeaders.append(\"Authorization\", \"Basic dXNlcjp1c2Vy\");\nvar raw = \"\";\n\nvar requestOptions = {\n  method: 'GET',\n  headers: myHeaders,\n  body: raw,\n  redirect: 'follow'\n};\n\nfetch(\"http://127.0.0.1:8000/generic/\", requestOptions)\n  .then(response =\u003e response.text())\n  .then(result =\u003e console.log(result))\n  .catch(error =\u003e console.log('error', error));\n```\n- node-axios\n```\nvar axios = require('axios');\nvar data = '';\n\nvar config = {\n  method: 'get',\n  url: 'http://127.0.0.1:8000/generic/',\n  headers: { \n    'Authorization': 'Basic dXNlcjp1c2Vy'\n  },\n  data : data\n};\n\naxios(config)\n.then(function (response) {\n  console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n  console.log(error);\n});\n\n```\n- python-request\n```\nimport requests\nurl = \"http://127.0.0.1:8000/generic/\"\npayload={}\nheaders = {\n  'Authorization': 'Basic dXNlcjp1c2Vy'\n}\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\nprint(response.text)\n```\n\n### Token-Auth\n- js-fetch()\n```\nmyHeaders.append(\"Authorization\", \"Token 270801e49bafecbfdaf813f690b7c36a81e5eff7\");\n```\n- node-axios\n```\nheaders: { \n  'Authorization': 'Token 270801e49bafecbfdaf813f690b7c36a81e5eff7'\n},\n```\n- python-request\n```\nheaders = {\n  'Authorization': 'Token 270801e49bafecbfdaf813f690b7c36a81e5eff7'\n}\n```\n\nviews read: down-up\n\n## License\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n\nBy [Yashwant](https://github.com/iyashwantsaini)\n\n## Contributors\n\n\u003cimg src=\"https://avatars3.githubusercontent.com/u/21121279?s=460\u0026u=f0450278b2b569c4443ab8ee03f9dff7015da5bf\u0026v=4\" width=\"100px;\" alt=\"toofff\"/\u003e\u003cbr /\u003e\n\n\u003ca href=\"https://meyash.xyz/\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://meyash.xyz/assets/icons/siteicon.png\" width=\"25\"\u003e\u003c/a\u003e\n\u003ca href=\"https://meyash.xyz/resume.pdf\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/libreoffice.svg\" width=\"25\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.linkedin.com/in/iyashwantsaini/\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/linkedin.svg\" width=\"25\"\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/iyashwantsaini\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/twitter.svg\" width=\"25\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdjango-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyashwantsaini%2Fdjango-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdjango-rest/lists"}