Summary
In this chapter, we discussed how to easily develop RESTful web services using Jakarta REST.
We covered the following topics:
- How to develop a RESTful web service by adding a few simple annotations to our code
- How to automatically generate JSON data
- How to automatically parse JSON data it receives as a request
- How to pass parameters to our RESTful web services via the
@PathParam
and@
QueryParam
annotations - How to implement server-sent events and server-sent event clients
RESTful web services have become immensely popular in recent years; they are now the preferred way of developing web applications and are also heavily used when developing applications utilizing a microservices architecture. As seen in this chapter, Jakarta EE allows us to implement RESTful web services by adding a few simple annotations to our Java classes.