{"id":25070585,"url":"https://github.com/endreot/djamazon","last_synced_at":"2026-04-24T12:02:57.351Z","repository":{"id":41944367,"uuid":"188081339","full_name":"EndreoT/Djamazon","owner":"EndreoT","description":"Djamazon Store REST API","archived":false,"fork":false,"pushed_at":"2022-04-22T21:18:35.000Z","size":111,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-25T18:10:04.217Z","etag":null,"topics":["api","django","django-rest-framework","python","rest-api"],"latest_commit_sha":null,"homepage":"https://djamazon.herokuapp.com/","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/EndreoT.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}},"created_at":"2019-05-22T17:06:48.000Z","updated_at":"2019-08-17T22:40:07.000Z","dependencies_parsed_at":"2022-08-12T00:01:15.836Z","dependency_job_id":null,"html_url":"https://github.com/EndreoT/Djamazon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EndreoT/Djamazon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndreoT%2FDjamazon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndreoT%2FDjamazon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndreoT%2FDjamazon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndreoT%2FDjamazon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EndreoT","download_url":"https://codeload.github.com/EndreoT/Djamazon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndreoT%2FDjamazon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","django","django-rest-framework","python","rest-api"],"created_at":"2025-02-06T21:32:24.604Z","updated_at":"2026-04-24T12:02:57.319Z","avatar_url":"https://github.com/EndreoT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Djamazon\n\n## Deployed Browsable API Link\nhttps://djamazon.herokuapp.com/\n\n![](./assets/images/djamazon-cropped.png)\n\n## Description\nDjamazon is an 'Amazon' like store API allowing customer, supervisor, and manager interaction with the Djamazon database\n\n## Motivation\nThis project sets up an easy to use RESTful API backend ready for a user interface implementation \n\n## Result\nDjamazon implements a RESTful API built using Django and Django REST Framework (DRF), both Python web frameworks. Users can belong to one or many of the following groups: Customer, Supervisor, Manager, each of which can interact with the API differently. For example, Customer users can purchase item stock, but cannot add new stock, or create or update products. Users can log in directly to the browsable web api that is automagically generated by DRF. JSON web tokens as an authentication and authorization strategy are also implemented, allowing an external front end framework to interact with the API.\n\n## Schema view\nhttps://djamazon.herokuapp.com/schema/\n\n## Try out Djamazon browsable API\n### Customer login\n```\nusername: customer\npassword: I3,#9Jfn\n```\n\n## Superuser login\n```\nusername: superuser\npassword: I3,#9Jfn\n```\n\n## Manager login\n```\nusername: customer\npassword: I3,#9Jfn\n```\n\n## Token Authentication Routes\n### Obtain JSON token with the correct credentials\n```\nPOST https://djamazon.herokuapp.com/api/token/\nbody: {\n  username: \u003cusername\u003e,\n  password: \u003cpassword\u003e\n}\n\nSample response:\n{\n    \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTU2MTA2MzgxNCwianRpIjoiMmYwNWM4Nzg5YzM2NDVlMGE5OWE5ODFlYWRhYjNjODIiLCJ1c2VyX2lkIjoyfQ.nt_BQBT6Q4fe6hJScAHnllXRGdtxWCt_5wfWhXK9NsQ\",\n    \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTYwOTgzNDE0LCJqdGkiOiJiNTQ4NGE4YzRkZjI0MmY5YTcwMTU2MTE5OGMxNTY5MiIsInVzZXJfaWQiOjJ9.1DEPJGIcNEXdDVWWYC3jWk4Ms7_0NuXUAQGx_kEZy2w\"\n}\n```\n\n### Refresh token\n```\nPOST https://djamazon.herokuapp.com/api/token/refresh/\nbody: {\n  refresh: \u003crefresh token\u003e\n}\n\nSample valid response:\n{\n    \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTYwOTgzODE1LCJqdGkiOiI0NTExNWE1MWRmNDc0NmMxYjIyMWM2ZTA5NmNiZWFmOCIsInVzZXJfaWQiOjJ9.ChUX_tvQbytmKDnLs_I1ApWUDg5l-JkjeSsSAvTUUjk\"\n}\n\nSample invalid response:\n{\n    \"detail\": \"Token is invalid or expired\",\n    \"code\": \"token_not_valid\"\n}\n```\n\n### Verify token\n```\nPOST https://djamazon.herokuapp.com/api/token/verify/\nbody: {\n  token: \u003caccess token\u003e\n}\n\nValid token response:\n{}\n\nInvalid token response:\n{\n    \"detail\": \"Token is invalid or expired\",\n    \"code\": \"token_not_valid\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendreot%2Fdjamazon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendreot%2Fdjamazon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendreot%2Fdjamazon/lists"}