Why SmartShop API?

Quick Start

  1. Clone: git clone https://github.com/supunsarachitha/SmartShop-API.git
  2. Restore: dotnet restore
  3. Run: dotnet run
  4. Test: Visit https://localhost:5001/api/products

See the README for full setup and environment configuration.

If you use Swashbuckle/OpenAPI, your docs may be available at /swagger (e.g., https://localhost:5001/swagger).

Demo: Try the API

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"}'

Features

Products & Categories

Full CRUD for products and categories to power your catalog.

Customers

Customer profiles, registration, and authentication support.

Orders

Create, update, and track orders with solid, extensible models.

Performance

Built on .NET for high throughput and low latency APIs.

Security

Secure defaults and best practices to protect your data.

API Documentation

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

Sample Response

GET /api/products

[
  { "id": 1, "name": "Wireless Mouse", "price": 25.99, "category": "Accessories" },
  { "id": 2, "name": "Bluetooth Headphones", "price": 49.99, "category": "Audio" }
]

Technology Stack

C# / .NET REST API Entity Framework SQL Server / PostgreSQL Docker (optional)

Community & Resources

Open Source MIT License CI/CD Ready Actively Maintained

Resources: Repository | Issue Tracker | Releases

Changelog

FAQ

Is authentication included?
Yes. Customer registration and authentication endpoints are included. See the README for details.
Can I deploy with Docker?
Yes. Docker support enables easy local and cloud deployments.
Which databases are supported?
SQL Server and PostgreSQL are supported out of the box.
How do I report a bug or request a feature?
Open an issue on GitHub.

Powered by Industry Leaders

Contact & Support

Need help or want to get in touch?
Email: stechbuzz+smartshop@gmail.com
GitHub Issues: Report or discuss