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)

Spark Framework

Spark is a micro-framework founded by Per Wendel for creating web applications in Java with minimal effort, and it's a free and open source Java Web Framework, released under the Apache 2 license.

The Spark Framework is a rapid-development web framework built with Java 8 Lambda Expression (based on the lambda philosophy), so it can help to build a web application with fewer verbose, in fact you can build a REST API with a JSON response in less than 10 lines of code and provide Node.js-like experience when developing a web API. Cool, isn't it?

Core features of Spark Framework

Let's get a glimpse of some of the core characteristics of Spark:

  • Designed to create APIs faster and more easily
  • It...