#10 shares the problem when there's a meaningful amount of parameters on the handler function, this feature aims to reduce the number of parameters aggregating them into new objects.
Current:
get("/user/{userId}")
.param(String.class)
.query("page", Integer.class)
.query("limit", Integer.class)
.query("order", String.class)
.handle((userId, page, limit, order) -> { /* */ });
with param aggregation:
get("/user/{userId}")
.param(String.class)
.aggregate().query("page", Integer.class).query("limit", Integer.class).query("order", String.class).as(Pagination::new)
.handle((userId, pagination) -> { /* */ });
#10 shares the problem when there's a meaningful amount of parameters on the handler function, this feature aims to reduce the number of parameters aggregating them into new objects.
Current:
with param aggregation: