The main purpose of this project is learning fundamentals of web api's, logging, exception handling and OAuth0.
First create the database using the sql code in SQL folder.
Then run this code in your terminal:
dotnet run --project Product.Api
- .NET 6
- ASP.NET Core 6
- Dapper
- MediatR
- FluentValidation
- Swagger
- JWT
- Database Sql Express Server 2019
- Repository Pattern (Dapper)
EndPoints:
GET https://localhost:7101/api/v1/category/find-all-category
PUT https://localhost:7101/api/v1/category/update-category
GET https://localhost:7101/api/v1/category/find-category/{id:Guid}
POST https://localhost:7101/api/v1/category/create-category
DELETE https://localhost:7101/api/v1/category/delete-category
GET https://localhost:7101/api/v1/product/get-all-product
GET https://localhost:7101/api/v1/product/create-product
PUT https://localhost:7101/api/v1/category/update-product
GET https://localhost:7101/api/v1/category/find-product/{id:Guid}
DELETE https://localhost:7101/api/v1/category/delete-product
GET https://localhost:7101/api/v1/category/find-all-subcategory
PUT https://localhost:7101/api/v1/category/update-subcategory
GET https://localhost:7101/api/v1/category/find-subcategory/{id:Guid}
POST https://localhost:7101/api/v1/category/create-subcategory
DELETE https://localhost:7101/api/v1/category/delete-subcategory