Given two resources
http://example.com/places/1
http://example.com/places/2
How should the endpoint look like to merge both resources into a single resource? Ideally after the merge only 1 resource will remain.
At first glance I could do a PUT
to http://example.com/places/1
with params[:src_id] = 2
. Which would merge the attributes from the second resource into the first and delete the the second resource. Does anyone else have a better approach?
Note that I'm using Rails which doesn't support the http MERGE
verb so that's out of the question.