{"repo":"aghayeffemin/aspnetcore.ntier","free":true,"listed":false,"github":"https://github.com/aghayeffemin/aspnetcore.ntier","clone":"git clone https://github.com/aghayeffemin/aspnetcore.ntier.git","description":".NET Core N-Tier architecture Web Api sample project.","language":"C#","stars":150,"topics":["asp-net-core","asp-net-core-web-api","n-tier-architecture","automapper","generic-repository","dependency-injection","xunit","moq","dotnet-core","aspnetcore"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"Asp.Net Core Web API N-Tier .NET Core N-Tier architecture Web Api sample project. Give a Star ⭐️ If this repository helped you please consider giving a star! Thanks! Setup - SQLite has been used as database - You can change connection string from appsettings.json within aspnetcore.ntier.API - Apply database migrations to create the tables. From a command line : Go into aspnetcore.ntier.DAL class library. Please make sure proper versions of .NET SDK and dotnet-ef tool has been installed Apply database changes. If you are using SQLite then database file with .db extension should be created inside aspnetcore.ntier.API project Authentication - Authentication has been added for version 2 endpoints. - Non auth endpoints require JWT token to be provided otherwise 401 response will be returned - So you have to login or register first in order to get the JWT token then add it to the header while sending a request. It can be done by: - Clicking lock icon next to the particular endpoint and pasting token in the textbox on swagger page - Adding token for the header of the request - You can disable authentication for endpoints by removing attribute from the particular controller Versioning - URL versioning has been implemented and currently there are 2 versions. - Versions can be changed via Swagger page or by providing version number in the URL. Logging - Structured logging using Serilog has been implemented. - Currently logs are being added to file and console. - You can change or find ","default_branch":null,"files":null,"tree":[],"storefront":"/r/aghayeffemin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aghayeffemin/aspnetcore.ntier/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}