Limit search to available items
Book Cover
E-book
Author Kurtz, Jamie, author.

Title ASP.NET Web API 2 : building a REST service from start to finish / Jamie Kurtz, Brian Wortman
Published [Berkeley, CA] : Apress, [2014]
©2014

Copies

Description 1 online resource (xv, 249 pages) : illustrations
Series The expert's voice in ASP.NET
Expert's voice in ASP.NET.
Contents Machine generated contents note: ch. 1 ASP.NET as a Service Framework -- In the Land of JavaScript and Mobile Devices -- Advantages of Using the ASP.NET Web API -- Configuration -- REST by Default -- Abstraction with Routes -- Controller Activation Is, Well, Very Nice -- Simpler Extensible Processing Pipeline -- Interoperability of JSON, XML, and REST -- Few Feature Highlights of the ASP.NET Web API -- Summary -- ch. 2 What Is RESTful? -- From RPC to REST -- XML-RPC and SOAP -- URIs and Resources -- HTTP Verbs -- HATEOAS -- HTTP Status Codes -- HAL, Collection+JSON -- Summary -- ch. 3 Designing the Sample REST API -- Task Management Resource Types -- Hypermedia Links -- Modeling the URIs and HTTP Verbs -- Task-Management Data Model -- Choosing Architecture Components -- Data Access -- Type Mapper -- IoC Container -- Logger -- Testing Framework -- Mocking Framework -- Summary -- ch. 4 Building the Environment and Creating the Source Tree -- Configuring the Machine -- Windows 8 64-bit with .NET Framework 4.51 -- SQL Server 2012 -- Visual Studio 2013 -- NuGet Package Manager 2.6 -- Creating the Folder Structure -- Creating the Solution -- NuGet Config File -- Adding the Projects -- Basic Components -- Domain Model -- Service Model Types -- Logging -- Database -- Summary -- ch. 5 Up and Down the Stack with a POST -- Routing -- Adding an HttpRequestMessage Argument -- Adding a Model Object Argument -- Attribute-Based Routing -- Versioning -- Implementing POST -- Dependencies -- Constructor Injection of Dependencies -- Configuring Ninject Dependency Injection -- Container Configuration -- Container Bindings -- IDependencyResolver for Ninject -- Completing NinjectWebCommon -- NHibernate Configuration and Mappings -- Database Configuration: Overview -- Adding Concurrency Support to Entities -- Entity Mapping -- Mapping Relationships -- Database Configuration: Bringing It All Together -- Managing the Unit of Work -- Database Transaction Control -- Diagnostic Tracing -- Error Handling -- Persisting a Task and Returning IHttpActionResult -- New Service Model Type -- Persisting the Task -- IHttpActionResult -- Summary -- ch. 6 Securing the Service -- Main Idea -- Authentication -- Authorization -- Overview of the Authentication and Authorization Process -- Securing the POST -- Authorization Filter -- Message Handler to Support HTTP Basic Authentication -- Securing Non-Resource API Operations -- Activate a Task -- Complete a Task -- Reactivate a Task -- Auditing -- GET a Task -- Applying Token-Based Security -- Token Basics -- JSON Web Token -- Configuring the JwtAuthForWebAPI Package -- Getting a Task Using a JWT -- SSL, XSS, CORS, and CSRF -- Summary -- ch. 7 Dealing with Relationships, Partial Updates, and Other Complexities -- Task and User Relationships -- Partial Update of a Task Using PUT/PATCH -- Validation Using an Action Filter -- Specialized Action Filter to Validate Task Updates -- Generalized Action Filter to Validate New Tasks -- Paging of Results -- Constructing the Filter with a Data Request Factory -- Filtering the Results -- Hypermedia Links -- Common Link Service -- Business Domain-Specific Link Services -- Putting It Together -- Summary -- ch. 8 Supporting Diverse Clients -- Project Requirements -- Content Negotiation -- Supporting SOAP-Based Clients -- Where Is the Controller? -- Configuring the Route -- Adding a Custom Formatter -- Summary -- ch. 9 Completing the Picture -- Testing the API -- Unit Testing -- Integration Testing -- Going Live! -- Logging In -- Support for CORS -- Summary
Summary The ASP.NET MVC Framework has always been a good platform on which to implement REST-based services, but the introduction of the ASP.NET Web API Framework raised the bar to a whole new level. Now in release version 2.1, the Web API Framework has evolved into a powerful and refreshingly usable platform. This concise book provides technical background and guidance that will enable you to best use the ASP.NET Web API 2 Framework to build world-class REST services. New content in this edition includes: - New capabilities in Web API 2 (currently version 2.1). - Support for partial updates, or PATCH. - API versioning. - Support for legacy SOAP-based operations. - How to handle non-resource APIs using REST - How to best expose relationships between resources - JSON Web Tokens, CORS, CSRF Get ready for authors Jamie Kurtz and Brian Wortman to take you from zero to REST service hero in no time at all. No prior experience with ASP.NET Web API is required; all Web API-related concepts are introduced from basic principles and developed to the point where you can use them in a production system. A good working knowledge of C♯ and the .NET Framework are the only prerequisites to best benefit from this book
Notes Includes index
Online resource; title from PDF title page (EBSCO, viewed November 28, 2017)
Subject Application program interfaces (Computer software)
APIs (interfaces)
COMPUTERS -- Computer Science.
Application program interfaces (Computer software)
Form Electronic book
Author Wortman, Brian, author
ISBN 9781484201091
1484201094