10 Implementing REST services

This chapter covers

  • Understanding REST services
  • Implementing REST endpoints
  • Managing the data that the server sends to the client in the HTTP response
  • Obtaining data from the client in the HTTP request body
  • Managing exceptions at the endpoint level

In chapters 7 through 9, I mentioned representational state transfer (REST) services a few times concerning web applications. In this chapter, we extend the discussion on REST services, and you’ll learn they are not just related to web apps.

REST services are one of the most often encountered ways to implement communication between two apps. REST offers access to functionality the server exposes through endpoints a client can call.

You use REST services to establish ...

Get Spring Start Here 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.