Book Image

RESTful Java Patterns and Best Practices

By : Bhakti Mehta
Book Image

RESTful Java Patterns and Best Practices

By: Bhakti Mehta

Overview of this book

<p>The convergence of social networking, cloud computing, and the era of mobile applications has created a generation of emerging technologies that allow different networked devices to communicate with each other over the Internet with REST. REST has the benefits of being stateless; easing scalability, visibility, and reliability; and being platform and language agnostic.</p> <p>This book is a practical, hands-on guide that provides you with clear and pragmatic information to take advantage of the real power of RESTful services and gives you a good foundation for using them in your applications. By comparing APIs from platforms such as Facebook, Twitter, GitHub, and PayPal, the book teaches a range of exciting capabilities with RESTful services and explores the infinite possibilities by using the diverse building blocks and tips covered in various chapters.</p> <p>By the end of the book, you will be able to successfully use the concepts explained to design and implement applications based on best practices for RESTful services.</p>
Table of Contents (15 chapters)
RESTful Java Patterns and Best Practices
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


This appendix is a modest collection of APIs implemented by popular platforms such as GitHub, Facebook, and Twitter and the approaches they have taken to handle the various REST patterns. Though there are a myriad of possibilities for what a user can do with the data from the REST API, the commonality between the frameworks is the usage of REST and JSON. The REST APIs from these platforms are consumed by web and mobile clients. This appendix covered how these platforms handle versioning, verbs, error handling, and authenticating and authorizing the requests based on OAuth 2.0.

This book started off with the basics of REST and how to build your own RESTful services. Since then, we covered various topics as well as tips, and best practices for building scalable and highly performant REST services. We have also referred to various libraries and tools to improve testing and documentation of REST services along with emerging standards for real-time APIs. We also covered case studies with WebSockets, WebHooks, and the future of REST.

We hope this humble attempt from our end helps you understand, learn, design, and develop better REST APIs in the future.