ASP.NET Web API 2: Building a REST Service from Start to Finish, 2/e (Paperback)
暫譯: ASP.NET Web API 2:從頭到尾構建 REST 服務,第二版(平裝本)

Jamie Kurtz, Brian Wortman

  • 出版商: Apress
  • 出版日期: 2014-07-28
  • 售價: $2,960
  • 貴賓價: 9.5$2,812
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Paperback
  • ISBN: 1484201108
  • ISBN-13: 9781484201107
  • 相關分類: .NETASP.NET
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

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.

What you’ll learn

• Introduction to the REST architecture

• How to design a REST API

• New capabilities in ASP.NET Web API 2

• Understanding ASP.NET Web API controller activation

• Automatic lifetime management for database connections and transactions

• Using NHibernate with ASP.NET Web API

• Easily secure a REST service, using standards-based authentication and authorization and JSON Web Tokens

• Supporting legacy SOAP callers with ASP.NET Web API

• How to expose relationships between resources

• Supporting partial resource updates under REST

• Web API versioning

Who this book is for

Intermediate level developers in .NET, REST, C#

Table of Contents

1. ASP.NET as a Service Framework

2. What is RESTful?

3. Designing Our Sample REST API

4. Building the Environment and Creating the Source Tree

5. Controllers, Dependencies, and Managing the Database Unit of Work

6. Securing the Service

7. Dealing with Relationships, Partial Updates, and Other Complexities

8. Leveraging new Web API Features to Simplify Your Code and Support Legacy Systems

9. Putting It All Together

商品描述(中文翻譯)

ASP.NET MVC 框架一直是一個實現基於 REST 的服務的良好平台,但 ASP.NET Web API 框架的引入將這一標準提升到了全新的水平。

現在在 2.1 版本中,Web API 框架已經發展成為一個強大且令人耳目一新的可用平台。本書簡明扼要地提供了技術背景和指導,幫助您最佳地使用 ASP.NET Web API 2 框架來構建世界級的 REST 服務。

本版的新內容包括:

• Web API 2 的新功能(目前版本為 2.1)。

• 支持部分更新,或稱為 PATCH。

• API 版本控制。

• 支持舊版 SOAP 操作。

• 如何使用 REST 處理非資源 API。

• 如何最佳地暴露資源之間的關係。

• JSON Web Tokens、CORS、CSRF。

準備好讓作者 Jamie Kurtz 和 Brian Wortman 在短時間內帶您從零開始成為 REST 服務的英雄。無需具備 ASP.NET Web API 的先前經驗;所有與 Web API 相關的概念都從基本原則開始介紹,並發展到您可以在生產系統中使用的程度。對 C# 和 .NET 框架有良好的工作知識是最佳受益於本書的唯一前提。

您將學到的內容:

• REST 架構介紹。

• 如何設計 REST API。

• ASP.NET Web API 2 的新功能。

• 理解 ASP.NET Web API 控制器的啟動。

• 自動管理數據庫連接和事務的生命週期。

• 在 ASP.NET Web API 中使用 NHibernate。

• 使用基於標準的身份驗證和授權以及 JSON Web Tokens 輕鬆保護 REST 服務。

• 使用 ASP.NET Web API 支持舊版 SOAP 調用者。

• 如何暴露資源之間的關係。

• 在 REST 下支持部分資源更新。

• Web API 版本控制。

本書適合對象:

中級 .NET、REST、C# 開發人員。

目錄:

1. ASP.NET 作為服務框架
2. 什麼是 RESTful?
3. 設計我們的示例 REST API
4. 建立環境和創建源樹
5. 控制器、依賴性和管理數據庫工作單元
6. 保護服務
7. 處理關係、部分更新和其他複雜性
8. 利用新 Web API 功能簡化您的代碼並支持舊系統
9. 將所有內容整合在一起