Spring REST

Balaji Varanasi

  • 出版商: Apress
  • 出版日期: 2015-06-15
  • 售價: $2,590
  • 貴賓價: 9.5$2,461
  • 語言: 英文
  • 頁數: 208
  • 裝訂: Paperback
  • ISBN: 1484208242
  • ISBN-13: 9781484208243
  • 相關分類: Java 相關技術
  • 無法訂購

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

相關主題

商品描述

Spring REST is a practical guide for designing and developing RESTful APIs using the Spring Framework. This book walks you through the process of designing and building a REST application while taking a deep dive into design principles and best practices for versioning, security, documentation, error handling, paging, and sorting.

This book provides a brief introduction to REST, HTTP, and web infrastructure. You will learn about several Spring projects such as Spring Boot, Spring MVC, Spring Data JPA, and Spring Security and the role they play in simplifying REST application development. You will learn how to build clients that consume REST services. Finally, you will learn how to use the Spring MVC test framework to unit test and integration test your REST API.

After reading this book, you will come away with all the skills to build sophisticated REST applications using Spring technologies.

What you’ll learn

  • How to build REST applications with Spring technologies
  • How to identify REST resources and design their representations
  • How to version REST services
  • How to document REST services using Swagger
  • How to handle errors and communicate meaningful messages
  • How to secure REST services using Basic Auth and OAuth 2.0
  • How to handle large data sets using pagination
  • How to build REST clients using RestTemplate
  • How to test REST services using the Spring MVC test framework

Who this book is for

This book is for enterprise and web developers using Java and Spring and want to build REST applications. The book requires a basic knowledge of Java, Spring and the web, but no prior exposure to REST.

Table of Contents

1. Introduction to REST

2. Spring MVC Primer

3. RESTful Spring

4. Beginning the QuickPoll Application

5. Error Handling

6. Documenting REST Services

7. Versioning, Paging, and Sorting

8. Security

9. Clients and Testing

10. HATEOAS

Appendix: Installing cURL on Windows

商品描述(中文翻譯)

《Spring REST》是一本使用Spring Framework設計和開發RESTful API的實用指南。本書將引導您進入設計和構建REST應用程序的過程,同時深入探討版本控制、安全性、文檔編寫、錯誤處理、分頁和排序等設計原則和最佳實踐。

本書簡要介紹了REST、HTTP和Web基礎設施。您將學習到Spring項目的幾個重要組件,如Spring Boot、Spring MVC、Spring Data JPA和Spring Security,以及它們在簡化REST應用程序開發中的作用。您還將學習如何構建使用REST服務的客戶端。最後,您將學習如何使用Spring MVC測試框架對REST API進行單元測試和集成測試。

閱讀本書後,您將具備使用Spring技術構建複雜REST應用程序的所有技能。

您將學到以下內容:
- 如何使用Spring技術構建REST應用程序
- 如何識別REST資源並設計其表示形式
- 如何對REST服務進行版本控制
- 如何使用Swagger文檔化REST服務
- 如何處理錯誤並傳遞有意義的消息
- 如何使用基本身份驗證和OAuth 2.0保護REST服務
- 如何使用分頁處理大型數據集
- 如何使用RestTemplate構建REST客戶端
- 如何使用Spring MVC測試框架測試REST服務

本書適合Java和Spring的企業和Web開發人員,他們希望構建REST應用程序。本書需要基本的Java、Spring和Web知識,但不需要先前的REST經驗。

目錄:
1. REST簡介
2. Spring MVC入門
3. RESTful Spring
4. 開始QuickPoll應用程序
5. 錯誤處理
6. REST服務文檔化
7. 版本控制、分頁和排序
8. 安全性
9. 客戶端和測試
10. HATEOAS
附錄:在Windows上安裝cURL