Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🛒 eCommerceApp API

A RESTful ASP.NET Core Web API for managing an e-commerce platform, covering authentication, products, categories, cart checkout, and payment methods.


🚀 Base URL

https://localhost:{port}/api

📋 Table of Contents


🔐 Authentication

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

📦 Products

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

🗂️ Categories

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

🛒 Cart

Base route: /api/cart

Method Endpoint Description
POST /api/cart/checkout Process cart checkout

💳 Payments

Base route: /api/payment

Method Endpoint Description
GET /api/payment Get all available payment methods

🛠️ Tech Stack

  • Framework: ASP.NET Core Web API
  • Language: C# (.NET)
  • Architecture: Clean Architecture (Host / Application / Domain layers)
  • Auth: JWT Bearer Tokens

⚙️ Getting Started

  1. Clone the repository
git clone https://github.com/Eldax23/Ecommerce-API.git
cd Ecommerce-API
  1. Restore dependencies
dotnet restore
  1. Update the connection string in appsettings.json

  2. Apply migrations and run

dotnet ef database update
dotnet run --project eCommerceApp.Host
  1. Navigate to Swagger UI
https://localhost:{port}/swagger

📄 License

No License

About

This is an ecommerce API Built with .NET 8 Using the Clean architecture

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages