A RESTful ASP.NET Core Web API for managing an e-commerce platform, covering authentication, products, categories, cart checkout, and payment methods.
https://localhost:{port}/api
Base route: /api/authentication
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/authentication/login |
Login an existing user |
POST |
/api/authentication/register |
Register a new user |
PUT |
/api/authentication/Update |
Update user information |
PUT |
/api/authentication/ChangePassword |
Reset/change password |
Base route: /api/product
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/product |
Get all products |
GET |
/api/product/{id} |
Get a product by ID |
POST |
/api/product |
Create a new product |
PUT |
/api/product |
Update an existing product |
DELETE |
/api/product/{id} |
Delete a product by ID |
Base route: /api/category
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/category |
Get all categories |
GET |
/api/category/{id} |
Get a category by ID |
POST |
/api/category |
Create a new category |
PUT |
/api/category |
Update an existing category |
DELETE |
/api/category/{id} |
Delete a category by ID |
Base route: /api/cart
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/cart/checkout |
Process cart checkout |
Base route: /api/payment
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/payment |
Get all available payment methods |
- Framework: ASP.NET Core Web API
- Language: C# (.NET)
- Architecture: Clean Architecture (Host / Application / Domain layers)
- Auth: JWT Bearer Tokens
- Clone the repository
git clone https://github.com/Eldax23/Ecommerce-API.git
cd Ecommerce-API- Restore dependencies
dotnet restore-
Update the connection string in
appsettings.json -
Apply migrations and run
dotnet ef database update
dotnet run --project eCommerceApp.Host- Navigate to Swagger UI
https://localhost:{port}/swagger
No License