ASP.NET MVC 4 and the Web API [electronic resource] : Building a REST Service from Start to Finish /
Kurtz, Jamie.author.
This one hundred page book focuses exclusively on how you can best use the ASP.NET MVC 4 Framework to build world-class REST services using the Web API. It sets aside much of what the ASP.NET MVC Framework can do, and focuses exclusively on how the Web API can help you build web services. You will not find any help on CSS, HTML, JavaScript, or jQuery. Nor will you find any help on the Razor view engine, HTML Helpers, or model binding. If you need this information then Pro ASP.NET MVC 4 is your perfect book. ASP.NET MVC 4 and the Web API: Building a REST Service from Start to Finish helps you build cutting-edge REST services using ASP.NET MVC 4 and the Web API in more depth and detail than any other resource. ASP.NET MVC has always been a good platform on which to implement REST, but with the advent of the Web API it has now become even better. This book will show you why it's great and how to get the most from it. Author Jamie Kurtz will take you from zero to full-blown REST service hero in no time at all. And you'll even learn how to incorporate some popular open source tools along the way: little or no experience with ASP.NET or the MVC Framework is required.
Title Page; Copyright Page; Contents at a Glance; Table of Contents; Foreword; About the Author; About the Technical Reviewer; Acknowledgments; CHAPTER 1 ASP.NET MVC as a Service Framework; In the Land of JavaScript and Mobile Devices; Advantages of Using the MVC Framework; Configuration; REST by Default; Abstraction with Routes; Controller Activation Is, Well, Very Nice; Interoperability of JSON, XML, and REST; A Brief Introduction to the Web API; Summary; CHAPTER 2 What is RESTful?; From RPC to REST; XML-RPC and SOAP; URIs and Resources; HTTP Verbs; HATEOAS; HTTP Status Codes; Summary
CHAPTER 3 Designing the Sample REST APITask Management Resource Types; Hypermedia Links; Modeling the URIs and HTTP Verbs; The Task-Management Data Model; Choosing Architecture Components; Data Access; IoC Container; Logger; Authentication and Authorization; Mocking Framework; Build and Deployment Scripting; Summary; CHAPTER 4 Building the Environment and Creating the Source Tree; Machine Configuration; Windows 7 SP1 64 bit; SQL Server 2012; Visual Studio 2012; NuGet Package Manager 2.1; Creating the Folder Structure; Creating the Solution; NuGet Config File; Adding the Projects
Basic ComponentsDateTimeAdapter; Domain Model; Service Model Types; Logging; The Database; Summary; CHAPTER 5 Controllers, Dependencies, and Managing the Database Unit of Work; Controller Activation; Adding an HttpRequestMessage Argument; Adding a Model Object Argument; Dependencies; Constructor Injection of Dependencies; Configuring Ninject Dependency Injection; Container Configuration; Container Bindings; IDependencyResolver for Ninject; NHibernate Configuration and Mappings; Database Configuration; Model Mapping; The Mapping Classes; Project and File Organization; Model Relationships
Managing the Unit of WorkDatabase Transaction Control; Summary; CHAPTER 6 Securing the Service; The Main Idea; Authentication; Authorization; The Authentication and Authorization Process; Setting It Up; Augmenting Membership Data; The Message Handler; IUserSession; Summary; CHAPTER 7 Putting It All Together; A Quick Recap; The Reference Data Controllers; The PrioritiesController; The CategoriesController; Exploring the Controllers; Using Fiddler; Content Negotiation in the Web API; Adding New Resources; OData Support in the Web API; The Task Controllers; Separation of Subcontrollers
Task Priority and Status ControllersThe Task Categories and Users Controllers; The Task Controller; Sample Client Code; Automatic Error Logging; Summary; Index
Includes index.
This one hundred page book focuses exclusively on how you can best use the ASP.NET MVC 4 Framework to build world-class REST services using the Web API. It sets aside much of what the ASP.NET MVC Framework can do, and focuses exclusively on how the Web API can help you build web services. You will not find any help on CSS, HTML, JavaScript, or jQuery. Nor will you find any help on the Razor view engine, HTML Helpers, or model binding. If you need this information then Pro ASP.NET MVC 4 is your perfect book. ASP.NET MVC 4 and the Web API: Building a REST Service from Start to Finish helps you build cutting-edge REST services using ASP.NET MVC 4 and the Web API in more depth and detail than any other resource. ASP.NET MVC has always been a good platform on which to implement REST, but with the advent of the Web API it has now become even better. This book will show you why it's great and how to get the most from it. Author Jamie Kurtz will take you from zero to full-blown REST service hero in no time at all. And you'll even learn how to incorporate some popular open source tools along the way: little or no experience with ASP.NET or the MVC Framework is required.
Active server pages.
Microsoft .NET Framework.
Microsoft software.
Microsoft .NET Framework.
Software engineering.
Microsoft and .NET.
Software Engineering/Programming and Operating Systems.