@PUT("touched") public List<Child> touchCollection(IdRef<Parent> parentId) { List<Child> childs = yawp(Child.class).from(parentId).order("name").list(); for (Child child : childs) { child.setName("touched " + child.getName()); } return childs; }
@PUT("touchedParams") public Child touchParams(IdRef<Child> id, Map<String, String> params) { Child child = id.fetch(); child.setName("touched " + child.getName() + " by " + params.get("arg")); return child; }
@PUT("touched") public Child touchObject(IdRef<Child> id) { Child child = id.fetch(); child.setName("touched " + child.getName()); return child; }