Home Page Icon
Home Page
Table of Contents for
Title Page
Close
Title Page
by Badrinarayanan Lakshmiraghavan
Practical ASP.NET Web API
Title Page
Dedication
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
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.11 Controlling How Members Are Serialized
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
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.7 Binding dd/MM/yyyy Dates
5.8 Using TypeConverter
5.9 Creating a Custom Value Provider
5.10 Creating a Custom Model Binder
5.11 Creating a Custom Parameter Binder
5.12 Creating a Custom Media Formatter
Summary
CHAPTER 6: Validating Requests
6.1 Validation Using Data Annotations
6.2 Handling Validation Errors
6.3 Extending an Out-of-the-Box Validation Attribute
6.4 Creating Your Own Validation Attribute
6.5 Implementing the IValidatableObject Interface
Summary
CHAPTER 7: Managing Controller Dependencies
7.1 Taking Dependency on the Entity Framework
7.2 Inverting Entity Framework Dependencies
7.3 Using the Repository Pattern
7.4 Using the Generic Repository Pattern
7.5 Mapping a Domain to Data Transfer Object (DTO)
7.6 Injecting Dependencies Using StructureMap
7.7 Unit-Testing the Controller
Summary
CHAPTER 8: Extending the Pipeline
8.1 Creating a Message Handler
8.2 Creating an Exception Filter
8.3 Creating an Action Filter to Handle Concurrency
8.4 Creating a Controller Selector for Versioning
Summary
CHAPTER 9: Hosting ASP.NET Web API
9.1 Web Hosting ASP.NET Web API
9.2 Self-Hosting ASP.NET Web API
9.3 In-Memory Hosting ASP.NET Web API
Summary
CHAPTER 10: Securing ASP.NET Web API
10.1 Implementing Direct Authentication
10.2 Implementing Brokered Authentication
10.3 Authorizing Requests
Summary
CHAPTER 11: Consuming ASP.NET Web API
11.1 Calling a Web API from a Console Application
11.2 Calling a Web API from a WPF Application
11.3 Calling a Web API from JavaScript
Summary
CHAPTER 12: Building a Performant Web API
12.1 Creating Asynchronous Action Methods
12.2 Pushing Real-time Updates to the Client
12.3 Implementing Simple Web Caching
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
cover
Next
Next Chapter
Copyright
Practical ASP.NET
Web API
Badrinarayanan Lakshmiraghavan
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset