Skip to Content
Modern API Development with Spring and Spring Boot
book

Modern API Development with Spring and Spring Boot

by Sourabh Sharma
June 2021
Intermediate to advanced
582 pages
11h 12m
English
Packt Publishing
Content preview from Modern API Development with Spring and Spring Boot

Chapter 4: Writing Business Logic for APIs

We discussed APIs using OpenAPI in the previous chapter. API interfaces and models were generated by the Swagger Codegen. In this chapter, you will implement the API's code in terms of both business logic and data persistence. You will write services and repositories for implementation and also add hypermedia and ETags to API responses. It is worth noting that the code provided only consists of the important lines and not the whole file in the interest of brevity. You can always access the links given below the code to view the complete file.

This chapter includes the following topics:

  • Overview of the service design
  • Adding repository components
  • Adding service components
  • Implementing hypermedia
  • Enhancing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern API Development with Spring 6 and Spring Boot 3 - Second Edition

Modern API Development with Spring 6 and Spring Boot 3 - Second Edition

Sourabh Sharma

Publisher Resources

ISBN: 9781800562479Supplemental Content