@ApiErrors(apierrors = { @ApiError(code = "3000", description = "User not found"), @ApiError(code = "9000", description = "Illegal argument") })
@RequestMapping(value = "/q/{name}/{gender}", method = RequestMethod.GET)
public @ResponseBody @ApiResponseObject
List<User> usersByNameAndGenderAndAge(@PathVariable("name") @ApiParam(name = "name", description = "The user's name", required = true, paramType=ApiParamType.PATH) String name, @PathVariable("gender") @ApiParam(name = "gender", description = "The user's gender", required = true, paramType=ApiParamType.PATH) String gender, @RequestParam(value="agemin") @ApiParam(name = "agemin", description = "The user's min age", required = false, paramType=ApiParamType.QUERY) Integer agemin, @RequestParam(value="agemax") @ApiParam(name = "agemax", description = "The user's max age", required = false, paramType=ApiParamType.QUERY) Integer agemax) {
List<User> users = new ArrayList<User>();
users.add(new User(1, "jsondoc-user-1", agemin, gender));
users.add(new User(2, "jsondoc-user-2", agemax, gender));
return users;
}