public static Result update(Long id)
{
// the ID parameter isn't used here, since it's already in the JSON body
// PUTs should have an identifier, you could use it to confirm against the model you're sending, etc
JsonNode json = request().body().asJson();
ToDo incoming = Json.fromJson(json, ToDo.class);
incoming.update();
return ok(Json.toJson(incoming));
}