LEADER 06622nam 22007575 450 001 9910300463803321 005 20200706082452.0 010 $a9781484201091 010 $a1484201094 024 7 $a10.1007/978-1-4842-0109-1 035 $a(CKB)3710000000219348 035 $a(EBL)1964856 035 $a(SSID)ssj0001338636 035 $a(PQKBManifestationID)11796821 035 $a(PQKBTitleCode)TC0001338636 035 $a(PQKBWorkID)11338224 035 $a(PQKB)10890374 035 $a(MiAaPQ)EBC1964856 035 $a(DE-He213)978-1-4842-0109-1 035 $a(CaSebORM)9781484201091 035 $a(PPN)180622382 035 $a(OCoLC)889879377 035 $a(OCoLC)ocn889879377 035 $a(EXLCZ)993710000000219348 100 $a20140807d2014 u| 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aASP.NET Web API 2: Building a REST Service from Start to Finish /$fby Jamie Kurtz, Brian Wortman 205 $a2nd ed. 2014. 210 1$aBerkeley, CA :$cApress :$cImprint: Apress,$d2014. 215 $a1 online resource (266 p.) 225 1 $aThe expert's voice in ASP.NET 300 $aIncludes index. 311 08$a9781484201107 311 08$a1484201108 327 $aContents at a Glance; Introduction; Chapter 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; A Few Feature Highlights of the ASP.NET 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; HAL, Collection+JSON, ?; Summary 327 $aChapter 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; Type Mapper; IoC Container; Logger; Testing Framework; Mocking Framework; Summary; Chapter 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 327 $aDomain ModelService Model Types; Logging; The Database; Summary; Chapter 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; A Custom IHttpRouteConstraint; A Custom RoutePrefixAttribute; A Custom IHttpControllerSelector; Configuration; The Demo; Dependencies; Constructor Injection of Dependencies; Configuring Ninject Dependency Injection; Container Configuration; Container Bindings; IDependencyResolver for Ninject; Completing NinjectWebCommon 327 $aNHibernate Configuration and MappingsDatabase 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; Chapter 6: Securing the Service; The Main Idea; Authentication; Authorization; Overview of the Authentication and Authorization Process; Securing the POST; The Authorization Filter 327 $aA Message Handler to Support HTTP Basic AuthenticationSecuring Non-Resource API Operations; Activate a Task; Complete a Task; Reactivate a Task; Auditing; GET a Task; Applying Token-Based Security; Token Basics; The JSON Web Token; Configuring the JwtAuthForWebAPI Package; Getting a Task Using a JWT; SSL, XSS, CORS, and CSRF; Summary; Chapter 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 327 $aGeneralized Action Filter to Validate New Tasks 330 $aThe 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. 410 0$aExpert's voice in ASP.NET. 517 3 $aActive Server Pages .NET web Application Programing Interface two 606 $aMicrosoft software 606 $aMicrosoft .NET Framework 606 $aSoftware engineering 606 $aMicrosoft and .NET$3https://scigraph.springernature.com/ontologies/product-market-codes/I29030 606 $aSoftware Engineering/Programming and Operating Systems$3https://scigraph.springernature.com/ontologies/product-market-codes/I14002 615 0$aMicrosoft software. 615 0$aMicrosoft .NET Framework. 615 0$aSoftware engineering. 615 14$aMicrosoft and .NET. 615 24$aSoftware Engineering/Programming and Operating Systems. 676 $a004 700 $aKurtz$b Jamie$4aut$4http://id.loc.gov/vocabulary/relators/aut$0860175 702 $aWortman$b Brian$4aut$4http://id.loc.gov/vocabulary/relators/aut 801 0$bUMI 801 1$bUMI 906 $aBOOK 912 $a9910300463803321 996 $aASP.NET Web API 2: Building a REST Service from Start to Finish$92000202 997 $aUNINA