Coder Social home page Coder Social logo

dotnetcore5 / dotnet.sample.api Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 300 KB

dotnet 5 web api with api-versioning, documentation through swagger, localization, claim based jwt token security, feature toggling, centralized logging/exception-handling, throttling, caching, etc.

Home Page: https://github.com/dotnetcore5/Dotnet.Sample.Api

License: Apache License 2.0

C# 100.00%
visual-studio dotnet-5 api-versioning swagger localization claim-based-jwt-token feature-toggling centralized-logging centralized-exception-handling request-rate-limit

dotnet.sample.api's Introduction

Dotnet.Sample.Api GitHub release GitHub Release Date Maintenance

Centralized Logging GitHub repo size in bytes GitHub top language Lines of code Codacy Badge
Localization Api Versioning Claim-based-token Feature Toggling Maintainability
Central Logging Swagger Support Visual Studio 2019 .Net Framework GitHub language count

swagger documentation

Repository codebase

The repository consists of projects as below:

# Project Name Project detail location Environment
1 Dotnet.Sample.Api Dotnet5 WebApi as backend src\Api folder .Net Framework
2 Dotnet.Sample.Api.Tests Tests for webapi src\Api.Test folder .Net Framework

Application Folder structure


application folder structure


Summary

The overall objective of the applications :

Through the login endpoint A user can Login and jwt authentication is used.

Once authorized, user can do "CRUD" operation on the products endpoint

Setup detail

Environment Setup detail

Download/install

  1. .Net Framework to run webapi project

  2. VS2019 to run/debug the applications Or VSCode to run/debug the applications

Project Setup detail
  1. Please clone or download the repository from github

  2. Create a folder and place the downloaded repository and unzip if downloaded.

  3. Open the solution file through Visual Studio 2019 or through Visual Studio Code open the newly created folder where the repository is downloaded

(a) To start the webapi
  1. Through Visual Studio 2019, click F5 button to run the webapi, Please make sure the webapi project is selected as startup project.

  2. Or through Visual Studio Code, open a command terminal by pressing the computer keyboard buttons Control and ~

    (a) Within the terminal, browse to folder location named as "src\Api"

    (b) Restore the dependencies, type dotnet restore on the terminal

    (c) Run the webapi project, type dotnet run on the terminal

  3. WebApi shall start running on port 5000

For better experience please use chrome browser
(b) To run the unit test project
  1. Through Visual Studio 2019, open the Test Explorer and run the tests.

  2. Or through Visual Studio Code Open a new command terminal

    (a) Within the new terminal, browse to the folder named as "src\Api.Test"

    (b) To run the tests, type dotnet test on the terminal


To-do:

caching

endpoint throttling/rate limit


Visitor Badge GitHub contributors license

Flag Counter

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.