/NewEmployeeBuddy

An end-to-end RESTful service using ASP.NET WebAPI, C#, Dependency Injection, Generic Repository Pattern, Unit of Work, AutoMapper, NUnit and Moq.

Primary LanguageC#

NewEmployeeBuddy - your first friend in the organisation.

An end-to-end RESTful service using ASP.NET WebAPI, C#, Dependency Injection using AutoFac, Generic Repository Pattern, Unit of Work, AutoMapper, NUnit and Moq.

Technologies Used:

  1. ASP.NET WEBAPI - https://www.asp.net/web-api
  2. REST - http://stackoverflow.com/questions/671118/what-exactly-is-restful-programming
  3. Dependency Injection - http://stackoverflow.com/questions/130794/what-is-dependency-injection
  4. Generic Repository Pattern - https://msdn.microsoft.com/en-us/library/ff649690.aspx
  5. Unit of Work - http://stackoverflow.com/questions/10776121/what-is-the-unit-of-work-pattern-in-ef
  6. Attribute Routing - https://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2
  7. Action Filters - https://msdn.microsoft.com/en-in/library/dd410209(v=vs.100).aspx
  8. Unit Testing using Nunit and Moq - http://stackoverflow.com/questions/1554018/unit-test-nunit-or-visual-studio
  9. AutoMapper - http://automapper.org/

#Querying URIs

Verb URI Action
GET ~/api/employee/GetAll Gets the list of all Employees
GET ~/api/employee/GetById/1 Gets the Employee details passing the Employee Id
POST ~/api/employee/Add Adds an Employee
DELETE ~/api/employee/Delete Deletes an Employee
DELETE ~/api/employee/DeleteById/1 Deletes an Employee pasing the Employee Id
PUT ~/api/employee/Update Updates the Employee details