Web Api 2.0: BY Amareswara Rao
Web Api 2.0: BY Amareswara Rao
BY
AMARESWARA RAO
INTRODUCTION
WEB API 2.0
Attribute Routing
Self Host
IHTTPActionResult
Filter Overrides
Testability
CONTENTS
WEB API 2.0
Binding Parameters
Filtering Requests
Web-hosted Web API only supports a single server and single configuration file.
System.Web.Http.SelfHost.dll
[HttpXyz]
PUT
POST
GET
BINDING PARAMETERS
WEB API 2.0
simple types -> int/string -> not from the body(model binders are
responsible)
complex types -> class types -> from the body (formatters are
responsible)
[AuthorizeAttribute] X [AllowAnonymousAttribute]
IHTTPActionResult