Chapter 3: API Specifications and Implementation
In previous chapters, we learned about the design aspects of REST APIs and the Spring fundamentals required for developing RESTful web services. In this chapter, you'll make use of these two areas to implement REST APIs. We have chosen a design-first approach for implementation. You will make use of the OpenAPI Specification (OAS) for first designing an API and later implementing it. You will also learn how to handle errors that occur while serving the request. Here, an API of a sample e-commerce app will be designed and implemented for reference.
We'll cover the following topics as part of this chapter:
- Designing APIs with OAS
- Converting OAS to Spring code
- Implementing the OAS code interfaces ...
Get Modern API Development with Spring and Spring Boot now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.