Products & Categories
Full CRUD for products and categories to power your catalog.
Your scalable, secure .NET backend for modern e-commerce. Clean RESTful endpoints. Easy integration. Robust architecture.
git clone https://github.com/supunsarachitha/SmartShop-API.git
dotnet restore
dotnet run
https://localhost:5001/api/products
/swagger
(e.g., https://localhost:5001/swagger
).
Fetch products with cURL:
curl -X GET https://localhost:5001/api/products
Create a new product:
curl -X POST https://localhost:5001/api/products \
-H "Content-Type: application/json" \
-d '{"name":"Bluetooth Headphones","price":49.99,"category":"Audio"}'
Full CRUD for products and categories to power your catalog.
Customer profiles, registration, and authentication support.
Create, update, and track orders with solid, extensible models.
Built on .NET for high throughput and low latency APIs.
Secure defaults and best practices to protect your data.
Endpoint | Method | Description | Parameters |
---|---|---|---|
/api/products | GET | List all products | None |
/api/products | POST | Create a new product | name, price, category |
/api/orders | POST | Create a new order | customerId, items[] |
/api/customers | GET | List all customers | None |
GET /api/products
[
{ "id": 1, "name": "Wireless Mouse", "price": 25.99, "category": "Accessories" },
{ "id": 2, "name": "Bluetooth Headphones", "price": 49.99, "category": "Audio" }
]
Resources: Repository | Issue Tracker | Releases
Need help or want to get in touch?
Email: stechbuzz+smartshop@gmail.com
GitHub Issues: Report or discuss