Skip to content
Snippets Groups Projects
Commit eaf2caa9 authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

feat(Relation3TiersController): add setGrandChildList method

parent 7a7ff3be
No related branches found
No related tags found
1 merge request!361feat(Relation3TiersController): add setGrandChildList method
......@@ -358,6 +358,16 @@ public abstract class Relation3TiersController<T extends Resource, V extends Res
}
}
public HttpEntity<HttpStatus> setGrandChildList(@PathVariable String parentid, @PathVariable String id, @RequestBody String[] gdChildIds) {
try {
this.delete(parentid, id, null);
} catch(SolidifyHttpErrorException e) {
// No-op
}
this.create(parentid, id, gdChildIds);
return new HttpEntity<>(HttpStatus.OK);
}
/**
* Update all relations between the parent and the child, with given relation properties
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment