Is there any way in Quarkus where I can define the Response object with an actual object? I can only manage to use it like this at the moment:
Response findAll();
Basically what I want to achieve is something similar with Spring ResponseEntity:
ResponseEntity<List<SampleResponse>> findAll();
CodePudding user response:
If you use RESTEasy Reactive, you can org.jboss.resteasy.reactive.RestResponse
which has an API almost identical to javax.ws.rs.core.Response
.
See the documentation for more details.