From the course: Learning Quarkus

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

RESTful communication with Quarkus

RESTful communication with Quarkus

From the course: Learning Quarkus

Start my 1-month free trial

RESTful communication with Quarkus

- [Instructor] Of course any discussion about Microservice Framework wouldn't be complete without talking about REST, the de facto communication standard for web services, especially within microservices. Now, because Quarkus implements MicroProfile, JAX-RS is the REST interface. JAX-RS itself is a well-documented interface. So we we'll just talk about some of the basics. You can get a lot more depth by reading through all that documentation. Now, classes that should respond to web requests are annotated with an @Path annotation, which takes the value. And that value is the actual path off of the context route. So you don't need to put in the whole context route. It's just everything after that point is what you put in the path statement. Now, methods within those classes are directly annotated with the HTTP verb that they listened to. And that's really where all the traffic is going. So the class points that in the…

Contents