{"id":23893808,"url":"https://github.com/tanjib-rafi/ecommerce-api","last_synced_at":"2025-09-11T17:09:03.293Z","repository":{"id":240484081,"uuid":"802420729","full_name":"Tanjib-Rafi/Ecommerce-API","owner":"Tanjib-Rafi","description":"API for core functionalities common to most e-commerce platforms","archived":false,"fork":false,"pushed_at":"2024-05-25T12:42:20.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T14:40:26.900Z","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/Tanjib-Rafi.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-05-18T08:42:57.000Z","updated_at":"2024-05-25T12:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"7adc825f-59a4-4e77-a703-d440016a5d0f","html_url":"https://github.com/Tanjib-Rafi/Ecommerce-API","commit_stats":null,"previous_names":["tanjib-rafi/ecommerce-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanjib-Rafi%2FEcommerce-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanjib-Rafi%2FEcommerce-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanjib-Rafi%2FEcommerce-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanjib-Rafi%2FEcommerce-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tanjib-Rafi","download_url":"https://codeload.github.com/Tanjib-Rafi/Ecommerce-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240275909,"owners_count":19775615,"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":"2025-01-04T14:40:12.291Z","updated_at":"2025-02-23T06:15:52.236Z","avatar_url":"https://github.com/Tanjib-Rafi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Setup instructions\n\nFirst, clone the repository to your local machine:\n\n```bash\ngit clone https://github.com/Tanjib-Rafi/Ecommerce-API.git\n```\n\nInstall the requirements:\n\n```bash\npip install -r requirements.txt\n```\n\nApply the migrations:\n\n```bash\npython3 manage.py migrate\n```\n\nFinally, run the development server:\n\n```bash\npython manage.py runserver\n```\n\nThe API endpoints will be available at:\n http://127.0.0.1:8000/api/\n\n\n## API Endpoints\n\n### User Endpoints\n\n| Action                | HTTP Method | Endpoint               |\n|-----------------------|-------------|------------------------|\n| Register for an account | POST        | `/api/users/register/` |\n| Login                 | POST        | `/api/users/login/`    |\n| Logout                | POST        | `/api/users/logout/`   |\n\n### Product Endpoints\n\n| Action                       | HTTP Method | Endpoint                            |\n|------------------------------|-------------|-------------------------------------|\n| List and create products     | GET, POST   | `/api/products/products/`           |\n| Retrieve, update, delete product | GET, PUT, DELETE | `/api/products/products/\u003cint:pk\u003e/` |\n| List and create categories   | GET, POST   | `/api/products/categories/`         |\n| Retrieve, update, delete category | GET, PUT, DELETE | `/api/products/categories/\u003cint:pk\u003e/` |\n| List and create brands       | GET, POST   | `/api/products/brands/`             |\n| Retrieve, update, delete brand | GET, PUT, DELETE | `/api/products/brands/\u003cint:pk\u003e/`   |\n| List and create product variations | GET, POST | `/api/products/variations/`       |\n| Retrieve, update, delete product variation | GET, PUT, DELETE | `/api/products/variations/\u003cint:pk\u003e/` |\n| List and create reviews      | GET, POST   | `/api/products/reviews/`            |\n| Retrieve, update, delete review | GET, PUT, DELETE | `/api/products/reviews/\u003cint:pk\u003e/` |\n| List and create wishlists    | GET, POST   | `/api/products/wishlists/`          |\n| Retrieve, update, delete wishlist | GET, PUT, DELETE | `/api/products/wishlists/\u003cint:pk\u003e/` |\n\n### Order Endpoints\n\n| Action                       | HTTP Method | Endpoint                            |\n|------------------------------|-------------|-------------------------------------|\n| List and create orders       | GET, POST   | `/api/orders/orders/`               |\n| Retrieve, update, delete order | GET, PUT, DELETE | `/api/orders/orders/\u003cint:pk\u003e/`    |\n| List and create order items  | GET, POST   | `/api/orders/order-items/`          |\n| Retrieve, update, delete order item | GET, PUT, DELETE | `/api/orders/order-items/\u003cint:pk\u003e/` |\n| List and create carts        | GET, POST   | `/api/orders/carts/`                |\n| Retrieve, update, delete cart | GET, PUT, DELETE | `/api/orders/carts/\u003cint:pk\u003e/`     |\n| List and create coupons      | GET, POST   | `/api/orders/coupons/`              |\n| Retrieve, update, delete coupon | GET, PUT, DELETE | `/api/orders/coupons/\u003cint:pk\u003e/`  |\n\n### Payment Endpoints\n\n| Action                       | HTTP Method | Endpoint                            |\n|------------------------------|-------------|-------------------------------------|\n| List and create payments     | GET, POST   | `/api/payments/payments/`           |\n| Retrieve, update, delete payment | GET, PUT, DELETE | `/api/payments/payments/\u003cint:pk\u003e/` |\n\n### Address Endpoints\n\n| Action                       | HTTP Method | Endpoint                            |\n|------------------------------|-------------|-------------------------------------|\n| List and create addresses    | GET, POST   | `/api/addresses/addresses/`         |\n| Retrieve, update, delete address | GET, PUT, DELETE | `/api/addresses/addresses/\u003cint:pk\u003e/` |\n\n### Admin Endpoint\n\n| Action       | HTTP Method | Endpoint    |\n|--------------|-------------|-------------|\n| Admin panel  | GET         | `/admin/`   |\n\n## Example Usage\n\nTo register for an account, send a POST request to:\n\n```http\nPOST /api/users/register/\n\n```JSON\n{\n\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanjib-rafi%2Fecommerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanjib-rafi%2Fecommerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanjib-rafi%2Fecommerce-api/lists"}