The project is not a real project, It was an assignment by a client to check the coding.
This API is designed to manage talent. Talent is referred to as an employee in the project. It has the following API.
- [GET] api/employee/get-all -- This API has no pagination. It returns all employees/talent.
- [GET] api/employee/get-list/1/10 -- This API has pagination implemented. It will return all employees/talent based on page index and size.
- [GET] api/employee/{id} -- This API returns one specific employee/talent.
- [POST] api/employee/create -- This API will create new employees/talent.
- [PUT] api/employee/update -- This API will update the information of employees/talent.
- [DELETE] api/employee/delete/{id} -- This API will delete any employee/talent.
To run this project, please follow the following steps.
a) Build the project.
b) Update the connection string for the SQL server.
c) In the package manager console run the following commands
"update-database"
d) Run the project
As authorization has been applied, for any employee API call, first get the bearer token from Auth/login API using the below credentials.
username/password:
bashir@gmail.com/P@ssword!
tuan@gmail.com/P@ssword!
marc@gmail.com/P@ssword!