I currently have a problem similar to this but in quarkus-resteasy. I have looked around and I cannot find a way to order the paths. The endpoint for getAllNotifications()
is never selected, all requests go to getModel()
:
@Get
@Path("/cars/{brand}/{model}")
@Produces(MediaType.APPLICATION_JSON)
public Response getModel(@PathParam("brand") String brand, @PathParam("model") String model) {
...
}
@Get
@Path("/cars/notification/all")
@Produces(MediaType.APPLICATION_JSON)
public Response getAllNotifications() {
...
}
Is there a way to prioritize either endpoint 1 or 2 like it was done here