rest - How do you RESTfully Create and Delete at the Same Time? -
let's have trip planning application, , each trip composed of "path" resources (representing route driven, example) composed series of points. can crud these resources using requests (just example): post /trips/1234/paths <path> <point>32,32</point> <point>32,34</point> <point>34,34</point> </path> delete /trips/1234/paths/3 now consider want able split path 2 paths. in aobve example, might want pick point (32,34) split on, result in 2 paths - 1 ends @ point, 1 starts @ point. means single action creates 2 new resources, , simultaneously, deletes (the path split). so if path in example above path in system, , split single call, system contain 2 new paths , original gone. example: <path> <point>32,32</point> <point>32,34</point> </path> <path> <point>32,34</point> <point>34,34</point> </path> i'm struggling how handled r...