ASP.NET Web API 2: Building a REST Service from Start to Finish, 2/e (Paperback)

Jamie Kurtz, Brian Wortman

  • 出版商: Apress
  • 出版日期: 2014-07-28
  • 售價: $2,510
  • 貴賓價: 9.5$2,385
  • 語言: 英文
  • 頁數: 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框架的引入將其提升到了一個全新的水平。

現在的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 Framework有良好的工作知識是從本書中獲益的唯一先決條件。

您將學到什麼:

• REST架構的介紹。

• 如何設計REST API。

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

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

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

• 使用NHibernate與ASP.NET Web API。

• 使用基於標準的身份驗證和授權以及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. 將所有內容結合起來