© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
F. Gutierrez, J. B. OttingerIntroducing Spring Framework 6https://doi.org/10.1007/978-1-4842-8637-1_10

10. Exposing a REST API

Felipe Gutierrez1   and Joseph B. Ottinger2
(1)
Cary, NC, USA
(2)
YOUNGSVILLE, NC, USA
 

In our last chapter, we saw how to use asynchronous messaging APIs in Spring using the JmsTemplate to send messages and the @JmsReceiver annotation to receive them. Now we’re going to step back into the land of the Web, to build a set of endpoints that expose our data model to a rich client, using REST.

What Is REST?

REST stands for “REpresentational State Transfer” and generally refers to APIs that conform to a rough definition of resources accessed ...

Get Introducing Spring Framework 6: Learning and Building Java-based Applications With Spring 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.