class HelloController { public Response index() { return new StringResponse("Go to /hello/{your name} for a free hug !"); } public Response sayHello(String name, String ohai) { return new StringResponse(String.format("%s %s !", (ohai == null ? "Ohai" : ohai), name)); } } Thursday, 23 May, 13
GET / TodoController.list() GET /new TodoController.create() POST /new TodoController.create({req.param.title}, {req.param.debug}) req.param.debug: true|false GET /api/{id} ApiTodoController.show({id}) id: \d+ POST /api ApiTodoController.create(JacksonArgument) GET /create TodoController.create(TodoParameter) GET /resource Controller.get({req.header.ETag}) Thursday, 23 May, 13