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