Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.03 KB

File metadata and controls

22 lines (18 loc) · 1.03 KB

Students and Classes with C# + Swagger

A C# Entity .NETCore API for Students and Classes, using Swagger, Authentications and SQLServer.

-> Technologies

This project uses C# Asp.NET-Core with Swagger, containing Authentications/Authorization with JWT Bearer Token. For the database: SQLServer.

-> Dependecies:

To run the project you'll need to have installed:

  • Microsoft.AspNetCore.Authentication
  • Microsoft.AspNetCore.Authentication.JwtBearer
  • Microsoft.EntityFrameworkCore
  • Microsoft.EntityFrameworkCore.SqlServer
  • Microsoft.EntityFrameworkCore.Tools
  • Swashbuckle.AspNetCore
  • SQL

-> How to

The API have some methods that can be accessed with Token Authorization by Login route. To do so, you'll need to provide a login information that matches in database. After getting the token, you need to authorize the access to methods by the button "Authorize" in the header of SwaggerUI, for example:
> Bearer TokenKey
The methods access without token authorization is not possible.