Practical ASP.NET Web API [electronic resource] /
Lakshmiraghavan, Badrinarayanan.author.
Practical ASP.NET Web API provides you with a hands-on and code-focused demonstration of the ASP.NET Web API in action. From the very beginning, you'll be writing working code in order to see best practices and concepts in action. As the book progresses, the concepts and code will become more sophisticated. Beginning with an overview of the web service model in general and Web API in particular, you'll progress quickly to a detailed exploration of the request binding and response formatting that lie at the heart of Web API. You'll investigate various scenarios and see how they can be manipulated to achieve the results you need. Later in the book more sophisticated themes will be introduced that will set your applications apart from the crowd. You'll learn how you can validate the request messages on arrival, how you can create loosely coupled controllers, extend the pipeline processing to compartmentalize your code for security and unit testing before being put onto a live hosting server.
""Contents at a Glance""; ""Contents""; ""About the Author""; ""About the Technical Reviewer""; ""Introduction""; ""Chapter 1: Building a Basic Web API""; ""1.1 Choosing ASP.NET Web API or WCF""; ""1.2 Exposing an In-Memory List over HTTP""; ""1.3 Choosing Configuration over Convention""; ""1.4 Playing by the Rules of HTTP""; ""1.4.1 Retrieving Resource(s)""; ""1.4.2 Creating a Resource with a Server-Generated Identifier""; ""1.4.3 Creating a Resource with a Client-Supplied Identifier""; ""1.4.4 Overwriting a Resource""; ""1.4.5 Updating a Resource""
""1.4.6 Partially Updating (Patching) a Resource""""1.4.7 Deleting a Resource""; ""Summary""; ""Chapter 2: Debugging and Tracing""; ""2.1 Using Fiddler for Web Debugging""; ""2.2 Capturing Console App Traffic through Fiddler""; ""2.3 Capturing HTTPS Traffic in Fiddler""; ""2.4 Composing and Submitting Requests in Fiddler""; ""2.5 Using F12 Developer Tools in Internet Explorer""; ""2.6 Using Developer Tools in Chrome""; ""2.7 Enabling ASP.NET Web API Tracing""; ""2.8 Creating a Custom Trace Writer""; ""2.9 Tracing Entry and Exit""; ""2.10 Tracing from Your Code""
""2.11 Tracing Request and Response Messages""""Summary""; ""Chapter 3: Media-Type Formatting CLR Objects""; ""3.1 Listing the Out-of-Box Media Formatters""; ""3.2 Understanding Conneg""; ""3.3 Requesting a Content Type through the Query String""; ""3.4 Requesting a Content Type through the Header""; ""3.5 Implementing a Custom Media Type Mapping""; ""3.6 Overriding Conneg and Returning JSON""; ""3.7 Piggybacking on Conneg""; ""3.8 Creating a Custom Media Formatter""; ""3.9 Extending an Out-of-Box Media Formatter""; ""3.10 Controlling Which Members Are Serialized""
""3.10.1 Blacklisting Members""""3.10.2 Whitelisting Members""; ""3.11 Controlling How Members Are Serialized""; ""3.11.1 Controlling Member Names""; ""3.11.2 Prettifying JSON""; ""3.12 Returning Only a Subset of Members""; ""Summary""; ""Chapter 4: Customizing Response""; ""4.1 Negotiating Character Encoding""; ""4.2 Supporting DBCS Character Encoding (Shift JIS)""; ""4.3 Negotiating Content Encoding (Compression)""; ""4.4 Negotiating Language""; ""4.4.1 Internationalizing the Messages to the User""; ""4.4.2 Internationalizing the Decimal Separators of Numbers""
""4.4.3 Internationalizing the Dates""""Summary""; ""Chapter 5: Binding an HTTP Request into CLR Objects""; ""5.1 Reading the Raw HTTP Request""; ""5.2 Reading the HTTP Request into a CLR Type""; ""5.3 Binding the HTTP Request to Simple Types""; ""5.4 Binding the HTTP Request to Complex Types""; ""5.5 Binding the HTTP Request to a Collection""; ""5.6 Binding the Form Data""; ""5.6.1 Binding to FormDataCollection""; ""5.6.2 Binding to Custom Class""; ""5.6.3 Binding to a Simple Type""; ""5.7 Binding dd/MM/yyyy Dates""; ""5.8 Using TypeConverter""; ""5.9 Creating a Custom Value Provider""
""5.10 Creating a Custom Model Binder""
Includes index.
Practical ASP.NET Web API provides you with a hands-on and code-focused demonstration of the ASP.NET Web API in action. From the very beginning, you'll be writing working code in order to see best practices and concepts in action. As the book progresses, the concepts and code will become more sophisticated. Beginning with an overview of the web service model in general and Web API in particular, you'll progress quickly to a detailed exploration of the request binding and response formatting that lie at the heart of Web API. You'll investigate various scenarios and see how they can be manipulated to achieve the results you need. Later in the book more sophisticated themes will be introduced that will set your applications apart from the crowd. You'll learn how you can validate the request messages on arrival, how you can create loosely coupled controllers, extend the pipeline processing to compartmentalize your code for security and unit testing before being put onto a live hosting server.
Microsoft software.
Microsoft .NET Framework.
Software engineering.
Microsoft and .NET.
Software Engineering/Programming and Operating Systems.