servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
170 stars 81 forks source link

Delete/Update files via RESTful #114

Closed adur1990 closed 7 years ago

adur1990 commented 7 years ago

File update or delete not possible via RESTful like in Batphone (https://github.com/servalproject/batphone/blob/development/src/org/servalproject/rhizome/Rhizome.java#L59)

quixotique commented 7 years ago

The way to "remove" a bundle from Rhizome is to update it to have an empty payload. The code you refer to does exactly this.

The RESTful interface supports making updates to a bundle, including setting the payload to empty. All relevant tests pass, so closing this issue.