- Tapa blanda: 208 páginas
- Editor: Apress; Edición: 1st ed. (16 de junio de 2015)
- Idioma: Inglés
- ISBN-10: 1484208242
- ISBN-13: 978-1484208243
- Valoración media de los clientes: Sé el primero en opinar sobre este producto
- Clasificación en los más vendidos de Amazon: nº226.337 en Libros en idiomas extranjeros (Ver el Top 100 en Libros en idiomas extranjeros)
- Ver el Índice completo
Compara Precios en Amazon
+ Envío GRATIS
Spring REST (Inglés) Tapa blanda – 16 jun 2015
|Nuevo desde||Usado desde|
Los clientes que compraron este producto también compraron
Descripción del producto
Reseña del editor
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.
Biografía del autor
Balaji Varanasi is a software development manager and technology entrepreneur. He has over 13 years of experience architecting and developing Java/.Net applications and, more recently, iPhone apps. During this period he has worked in the areas of security, web accessibility, search, and enterprise portals. He has a Master s Degree in Computer Science and serves as adjunct faculty, teaching programming and information system courses. When not programming, he enjoys spending time with his lovely wife in Salt Lake City, Utah.
No es necesario ningún dispositivo Kindle. Descárgate una de las apps de Kindle gratuitas para comenzar a leer libros Kindle en tu smartphone, tablet u ordenador.
Obtén la app gratuita:
Detalles del producto
Si eres el vendedor de este producto, ¿te gustaría sugerir ciertos cambios a través del servicio de atención al vendedor?
Opiniones de clientes
|5 estrellas (0%)|
|4 estrellas (0%)|
|3 estrellas (0%)|
|2 estrellas (0%)|
|1 estrella (0%)|
Opiniones de clientes más útiles en Amazon.com
In my case, working through this text followed a reading of "RESTful Java Patterns and Best Practices", by Bhakti Mehta, which provides a bigger picture view than is typically offered by other resources concentrating on specific technologies, and is among the very few available newer texts on the subject in the 2015 marketplace. Anyone newer to REST services might want to first check out this other book as well, keeping in mind that it was written from the perspective of the JAX-RS 2.0 API rather than Spring.
After an initial introduction to REST from a conceptual perspective, the authors offer a primer on Spring Web MVC for those who are not familiar with this particular Spring component, followed by an introduction to REST services by using Spring Boot to build a first application, and the design and development of a more complex application that will be worked on in an iterative fashion throughout the rest of the book, complete with error handling, documentation, versioning, paging, sorting, security, and testing.
In addition, the last chapter presents a small chapter on Spring HATEOAS and an even smaller 3-page appendix on installing cURL on Windows. The appendix might be considered convenient for some readers, but the material offered is essentially the same as on the cURL website. While I did not work through the last two chapters (which cover testing and Spring HATEOAS), I did work through 100% of the development covered in the rest of the book (the first eight chapters and the appendix), and for the most part the content offered is phenomenal.
For the most part, the first five chapters (the first 90 of approximately 175 pages) are error-free, with a couple dozen rather small coding issues that are typically mismatches between code and accompanying explanations. While I am surprised at myself for saying so, I actually did not end up minding these issues because it forced me to work them out. The publisher offers the code for this book in a ZIP file, but I do not recommend blindly using this code, because in my experience doing so inhibits the learning process. That said, I did take a look at the code on a couple occasions when issues were insurmountable.
Although the chapter on security (Chapter 7) has a couple issues, in my opinion, such as the magical replacement of @EnableWebSecurity with @EnableWebMvcSecurity in the OAuth 2.0 example, without explaining that this needs to be done, and without explaining the difference between these annotations (the Spring documentation explains that the latter adds AuthenticationPrincipalArgumentResolver), in general this chapter is very well put together, walking the reader through 6 popular approaches used for securing REST services, it is really only the chapter on documenting REST services (chapter 6) where the reader will likely need to turn to other sources.
In my case, I turned to the Springfox Reference Documentation for its guide on setting up Swagger UI. As explained by the guide, the Springfox suite of Java libraries are all about automating the generation of machine and human readable specifications for JSON APIs. The interesting thing, however, that often happens with published technical presentations presented by individuals such as Varanasi and Belida, however, is that information can get quickly outdated. In the case at hand, Swagger is now Springfox, the Maven dependencies now require Swagger2 rather than Swagger, and some of the packages have been completely renamed.
The out-of-the-box configuration of Swagger UI is actually quite good, once you understand how to incorporate it into the project, and quite easy (only two Maven dependencies and a single annotation is all that it takes to get you going). The confusion surrounding what is now being called Springfox can be surpassed relatively quickly, and the decision by the authors to include this chapter was a good one.
As an architect, I especially appreciated Chapter 1 ("Introduction to REST") for its explanations of resources, templates, HTTP methods and status codes, Chapter 3 ("RESTful Spring") for its presentation on the three different options to generate a new Spring Boot project, where I used the command line interface (CLI), Chapter 4 ("Beginning QuickPoll Application") for tying together all of the previously explained topics into workable code that is thoroughly annotated, and Chapter 8 ("Security") for transforming the example code base to use Basic Authentication, and later OAuth 2.0 (albeit with an in-memory token store for the authentication server and resource server).
Three stars because I can see a junior Java developer getting stuck on what should be a simple intro for a pretty simple treatment on a very powerful framework. If you are a junior woodchuck Java developer, the book is probably OK but look for another REST/MVC primer so you don't get discouraged and not finish up the book.
Code examples range from naive to barely usable.
No in depth knowledge shared.
The first few chapters talk about design aspects of RESTful applications followed by Spring MVC fundamentals.
The beauty of using Spring Boot as the framework, has kept much of the boilerplate configuration of RESTful Java applications to a minimum. Also, the application is complex enough, so that, it encompasses Spring Data as the Persistence Layer, using JPA Annotations, making it a complete front-to-back end data flow. It also implements Spring Security for authentication.
This is not a beginners guide to Spring Core or Spring MVC. But, readers with moderate knowledge of Spring Core and Spring MVC would be immensely benefited on their goal towards mastering Spring REST and RESTful web service development !
A very good effort , Balaji and Sudha ! ! Could you get together and create another book on Spring Data , maybe ! !