package ${package}.controllers;

import ${package}.models.Greeting;
import leap.core.validation.annotations.Required;
import leap.web.annotation.DefaultValue;
import leap.web.annotation.http.GET;
import leap.web.api.mvc.ApiController;
import leap.web.api.mvc.ApiResponse;
import java.util.concurrent.atomic.AtomicInteger;

public class GreetingController extends ApiController {

    @GET
    public ApiResponse<Greeting> greeting(@Required String name) {
        return ApiResponse.of(new Greeting(ShortID.randomID(), String.format("Hello, %s", name)));
    }

}
@@ -373,16 +373,87 @@
 ller %7B%0A%0A
+    private static final AtomicInteger counter = new AtomicInteger();%0A%0A
     @GET
@@ -504,16 +504,39 @@
 Required
+ @DefaultValue(%22World%22)
  String 
@@ -590,24 +590,31 @@
 ing(
-ShortID.randomID
+counter.incrementAndGet
 (), 
@@ -637,16 +637,17 @@
 ello, %25s
+!
 %22, name)

update greeting controller