https://github.com/devmuaz/electronic_store_aspnet_core_api
An ASP.Net Core 3.1 Web API for an Electronics Store, Well structured using different design patterns.
https://github.com/devmuaz/electronic_store_aspnet_core_api
asp dotnet-core mvc-architecture rest-api
Last synced: 8 months ago
JSON representation
An ASP.Net Core 3.1 Web API for an Electronics Store, Well structured using different design patterns.
- Host: GitHub
- URL: https://github.com/devmuaz/electronic_store_aspnet_core_api
- Owner: devmuaz
- Created: 2020-07-06T09:26:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T19:15:37.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T22:21:52.841Z (9 months ago)
- Topics: asp, dotnet-core, mvc-architecture, rest-api
- Language: C#
- Homepage:
- Size: 184 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASP.NET Core Web Api
A well structured api built using the .Net core frameworks with some of the most popular design patterns.
## Packages
- AutoMapper.Extensions.Microsoft.DependencyInjection
- Microsoft.AspNetCore.Authentication.JwtBearer
- Microsoft.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Design
- Microsoft.EntityFrameworkCore.SqlServer
- Microsoft.IdentityModel.Tokens
- Swashbuckle.AspNetCore
- System.IdentityModel.Tokens.Jwt
## Migrations
- First, make sure you have the EF (Entity Framework) tools installed by typing the following command
`dotnet tool install --global dotnet-ef`
- Now, to migrate do the follwoing commands
`dotnet ef migrations add InitialMigrations`
`dotnet ef database update`
## Endpoints
### Products:
- [GET] api/v1/products/all
- [GET] api/v1/products/get (QUERY)
- [POST] api/v1/products/create (FORM DATA)
- [POST] api/v1/products/update (QUERY)
- [DELETE] api/v1/products/delete (QUERY)
### Categories:
- [GET] api/v1/categories/all
- [GET] api/v1/categories/get (QUERY)
- [POST] api/v1/categorie/create (QUERY)
- [POST] api/v1/categories/update (QUERY)
- [DELETE] api/v1/categories/delete (QUERY)
### Users:
- [GET] api/v1/users/{username}
- [POST] api/v1/users/update (FORM DATA)
- [DELETE] api/v1/users/delete (QUERY)
### Auth:
- [GET] api/v1/auth/me (HEADER AUTHORIZATION) (Bearer Token)
- [POST] api/v1/auth/signin (FORM DATA)
- [POST] api/v1/auth/signup (FORM DATA)
## Storage & wwwroot
### Products (each product contains images up to 5) and stored in the path:
- uploads/products
### Users (user avatar) stored in the path:
- uploads/avatars
## API Testing (Swagger)
The API was integrated with Swagger so it can be easily tested
- https://localhost:5001/swagger/index.html
## For More
- [Facebook](https://www.facebook.com/devmuaz "AbdulMuaz Aqeel")
- [Instagram](https://www.instagram.com/devmuaz "AbdulMuaz Aqeel")