Implementing ASP .NET Web API using the Apigee Web API Design
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
README.md

README.md

aspnetwebapi-apigee

The goal of this project is help developers to implement an Web API using ASP .NET Web API and follow the Apigee Web API Design.

Setup

NuGet

PM> Install-Package AspNetWebApi.ApiGee

Using

SuccessHandlingFilterAttribute

Filter to encapsulate any success in a response with 200 status code.

[SuccessHandlingFilterAttribute]
public void Put(long id, Customer customer)
{
	CustomerService.ModifyCustomer(id, customer);
}

ErrorHandlingFilterAttribute

Filter to encapsulate any error in a response with 400 status code.

var filters = GlobalConfiguration.Configuration.Filters;
filters.Add(new ErrorHandlingFilterAttribute());