{"id":23219295,"url":"https://github.com/jefrey13/ecommerce-api-python","last_synced_at":"2026-04-26T23:31:32.907Z","repository":{"id":268295446,"uuid":"903894930","full_name":"Jefrey13/ecommerce-api-python","owner":"Jefrey13","description":"RESTful API for E-commerce built with FastAPI. Manage products, categories, cart, orders, payments, reviews, and inventory with Excel export support.","archived":false,"fork":false,"pushed_at":"2024-12-29T20:55:46.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T15:11:32.479Z","etag":null,"topics":["api-rest","csv-export","e-commerce","fastapi","layered-architecture","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jefrey13.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":"2024-12-15T20:36:14.000Z","updated_at":"2024-12-29T20:55:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"6cb98462-339a-4ecc-9f30-68772bd38c43","html_url":"https://github.com/Jefrey13/ecommerce-api-python","commit_stats":null,"previous_names":["jefrey13/ecommerce-api-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jefrey13/ecommerce-api-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fecommerce-api-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fecommerce-api-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fecommerce-api-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fecommerce-api-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jefrey13","download_url":"https://codeload.github.com/Jefrey13/ecommerce-api-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fecommerce-api-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32317163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: 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","csv-export","e-commerce","fastapi","layered-architecture","python"],"created_at":"2024-12-18T21:31:23.651Z","updated_at":"2026-04-26T23:31:32.887Z","avatar_url":"https://github.com/Jefrey13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce Backend API with FastAPI\n\n## Overview\nThis is a RESTful API for managing an E-commerce platform, built with **FastAPI**. The backend includes functionalities to handle products, categories, cart, orders, payments, reviews, and inventory. It also supports Excel export for products.\n\n---\n\n## Features\n- **CRUD** operations for:\n  - Products\n  - Categories\n  - Cart\n  - Orders\n  - Payments\n  - Reviews\n  - Inventory\n- Export product data to **Excel**.\n- Organized and modular architecture.\n\n---\n\n## Technologies\n- **Python**\n- **FastAPI**\n- **Pydantic**\n- **OpenPyXL** (for Excel export)\n\n---\n# API documentation - Swagger UI\n\n![FastAPI](https://i.ibb.co/ryCxSdP/fastapi.png)\n\n---\n## Endpoints\n### **Products**\n- `GET /api/products` - Get all products\n- `GET /api/products/{id}` - Get a product by ID\n- `POST /api/products` - Create a new product\n- `PUT /api/products/{id}` - Update a product\n- `DELETE /api/products/{id}` - Delete a product\n- `GET /api/products/export` - Export product data to Excel\n\n### **Categories**\n- `GET /api/categories` - Get all categories\n- `GET /api/categories/{id}` - Get a category by ID\n- `POST /api/categories` - Create a new category\n- `PUT /api/categories/{id}` - Update a category\n- `DELETE /api/categories/{id}` - Delete a category\n\n### **Cart**\n- `POST /api/cart` - Add a product to the cart\n- `GET /api/cart/{user_id}` - Get the cart for a specific user\n- `DELETE /api/cart/{user_id}/{product_id}` - Remove a product from the cart\n\n### **Orders**\n- `POST /api/orders` - Create a new order\n- `GET /api/orders/{user_id}` - Get orders for a user\n- `PUT /api/orders/{id}/{status}` - Update the status of an order\n\n### **Payments**\n- `POST /api/payments` - Register a payment\n- `GET /api/payments/{order_id}` - Get payments for an order\n\n### **Reviews**\n- `POST /api/reviews` - Add a review for a product\n- `GET /api/reviews/{product_id}` - Get reviews for a product\n\n### **Inventory**\n- `PUT /api/inventory/{product_id}` - Update inventory for a product\n- `GET /api/inventory` - Get inventory data\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefrey13%2Fecommerce-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefrey13%2Fecommerce-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefrey13%2Fecommerce-api-python/lists"}