- Used Asp.Net core3.1, Sqlite, Swagger, WebAPI, JWT, Automapper Library,xUnit, Code first Approach
Steps:
- Change the connectionstring.
- Migrate(Add-Migration command) and Update(Update-Database command) the DB through PackageManager Console to create database.
- Run the Application.
- It will display all the API methods in Swagger
- execute the api (Initiate) to insert data into Producttype and contact table.
- Then Register a User with Register API
- Login with Userid(email) and password to Generate JWT token.
- Authorize with the token in Swagger.
- Now you can use and send the parameters with the specific WebApi.