@Get("/param/{name}/{id}")
    public HttpResponse param(@Param String name,  /* from path variable */
                              @Param int id,       /* from path variable and converted into integer*/
                              @Param Gender gender /* from query string and converted into enum */) {
        return HttpResponse.ofJson(Arrays.asList(name, id, gender));
    }
Returns the received {@code name}, {@code id} and {@link Gender} to the sender as a JSON list.
examples/annotated-http-service/src/main/java/example/armeria/server/annotated/InjectionService.java