public String query(@QueryParam("25") int max) {
// max will be 25 by default
}
From lambda/script routes will be:
var max = ctx.query().getOrDefault("max", "25");
It differs from value(default value) bc the string can be converted to value node and any of the value supported by Value API.