Exposing a RESTful API with Spring
To implement REST APIs, in most chapters of this book, we are going to use Spring Boot. As it is a well-known and popular framework, it is very likely that you are familiar with it or have used it before.
However, the general API design principles are easily transferable to other Java technologies. You will learn more about how we can apply these principles to other technologies in Chapter 11.
In this chapter, we will discuss the process of designing a RESTful API. We will also concentrate on the practical implementation of the API using the Spring Framework, a popular choice for building RESTful APIs. By the end of this chapter, you will have the knowledge to design and create a RESTful API following the best practices.
In this chapter, we will be covering these topics:
- Designing the product API
- API implementation using Spring Boot