This is a ASP.NET Web API for an Employee Management System. This uses C#, .NET Framework, Entity Framework and MS-SQL for the back end and Swagger UI for the front-end.
To run this application:
Step 1: you have to clone this to your local machine.
Now, you can successfully run the application.
Creating an Account : To create an account, the user must use the api/Account/Register
endpoint.
Create your Token : To create your token after successfully registering for an account, you must use the api/token
endpoint.
grant-type: password
username: <your email>
password: <your password>
After successfully creating your token, you must put that token in your headers if you are using Postman. However, in Swagger it will say Authorization
. This is where you type Bearer
<token>
.
Do not use quotation marks for your token when you place it in authorization and do not lose it.
After you successfully create an account and token, you can start using the endpoints provided in Swagger.