GithubHelp home page GithubHelp logo

dotnet-ecommerce's Introduction

Ecommerce API with .Net

Features

  1. Implement Repository with Unit Of Work Patterns.
  2. Utilize Entity Framework as a data access layer.
  3. User Authentication using JWT.
  4. Role-based Authorization managed by Identity.

Architecture

Endpoints

API Description Request body Response body Permission
POST /api/account/register allow user to register UserRegisterDto UserDto Anonymous
POST /api/account/login allow user to login UserLoginDto UserDto Anonymous
GET /api/product Get a list of all products None List Anonymous
GET /api/product/{id} Get a specific product None Product Anonymous
POST /api/product Add a new Product CreateProductDto Product Admin
PUT /api/product Update an existing Product   UpdateProductDto Product Admin
DELETE /api/product/{id}     Delete a product     None None Admin
POST /api/basket/{productId}/{qantity} Add a product to basket None BasketDto User
DELETE /api/basket/{productId}/{qantity} Delete Products from basket   None None User
GET /api/basket     Get the basket related to a specific user     None BasketDto User
POST /api/order Create a new order CreateProductDto Product User
GET /api/order Get all orders for a specific user   List None User
GET /api/order/{id}     Get A single order for a specific user     OrderDto None User

dotnet-ecommerce's People

Contributors

0xmbadr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.