Book Image

Hands-On RESTful API Design Patterns and Best Practices

By : Anupama Murali, Harihara Subramanian J, Pethuru Raj
Book Image

Hands-On RESTful API Design Patterns and Best Practices

By: Anupama Murali, Harihara Subramanian J, Pethuru Raj

Overview of this book

This book deals with the Representational State Transfer (REST) paradigm, which is an architectural style that allows networked devices to communicate with each other over the internet. With the help of this book, you’ll explore the concepts of service-oriented architecture (SOA), event-driven architecture (EDA), and resource-oriented architecture (ROA). This book covers why there is an insistence for high-quality APIs toward enterprise integration. It also covers how to optimize and explore endpoints for microservices with API gateways and touches upon integrated platforms and Hubs for RESTful APIs. You’ll also understand how application delivery and deployments can be simplified and streamlined in the REST world. The book will help you dig deeper into the distinct contributions of RESTful services for IoT analytics and applications. Besides detailing the API design and development aspects, this book will assist you in designing and developing production-ready, testable, sustainable, and enterprise-grade APIs. By the end of the book, you’ll be empowered with all that you need to create highly flexible APIs for next-generation RESTful services and applications.
Table of Contents (13 chapters)

Characterizing the REST architecture style

First and foremost, the REST paradigm is an architectural pattern. There were a number of design patterns published by experts in order to design and develop RESTful services. There are integration and deployment patterns for the quick realization of the pioneering REST paradigm.

The REST paradigm is compliant with the famous RoA pattern. The application state and functionality are methodically divided into distributed resources. These resources are available online and, hence, each resource can be accessed and used with the ubiquitous HTTP commands (GET, PUT, POST, and Delete). If we want to put a file in a file server, we need to use PUT or POST. If we want to get a file from the server, we can use the GET command. If we want to delete the file, the DELETE command is our go-to option. The REST architecture, is as usual, client-server...