@@ -0,0 +1,599 @@
+package cobr.edu.cesmac;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Optional;%0Aimport java.util.concurrent.atomic.AtomicInteger;%0A%0Aimport org.jooby.Result;%0Aimport org.jooby.Results;%0Aimport org.jooby.View;%0Aimport org.jooby.mvc.Body;%0Aimport org.jooby.mvc.GET;%0Aimport org.jooby.mvc.POST;%0Aimport org.jooby.mvc.Path;%0Aimport org.jooby.mvc.Produces;%0A%0A%0A@Produces(%22application/json%22)%0A@Path(%22/todo%22)%0Apublic class TodoResource %7B%0A%09%0A%0A%09static AtomicInteger idgen = new AtomicInteger();%0A%0A%09@POST%0A%09public Todo store(@Body Todo todo)%7B%0A%09%09todo.id = idgen.incrementAndGet();%0A%09%09return todo;%0A%09%7D%0A%0A%7D%0A

Add todo route and implements the post method