-
Notifications
You must be signed in to change notification settings - Fork 673
Open
Labels
help wantedWe need contributions on thisWe need contributions on thistype/enhancementA general enhancementA general enhancement
Milestone
Description
Defining a route [1] like
context = HttpServer.create(8556)
.newRouter(r -> r
.get("/hawkular/alerts", (req, resp) -> {
return resp.sendString(Mono.just("Get alerts"));
})
.route(req -> true, (req, resp) -> {
QueryStringDecoder query = new QueryStringDecoder(req.uri());
System.out.printf("route: %s %s\n", query.path(), query.parameters());
return resp.send();
})
).block();
get should accept query parameters in some way.
For example, a call like
curl http://localhost:8556/hawkular/alerts?query=AA
should be handled by the "get" route and not the second "route" one, as there is match in the path.
P.S.: Testing this on 3.0.5.RELEASE version
sworisbreathing, gaodong, chibenwa and coditori
Metadata
Metadata
Assignees
Labels
help wantedWe need contributions on thisWe need contributions on thistype/enhancementA general enhancementA general enhancement