janelia-flyem / dvid

Distributed, Versioned, Image-oriented Dataservice
http://dvid.io
Other
196 stars 33 forks source link

REST endpoint for GET /mappings #257

Closed stuarteberg closed 6 years ago

stuarteberg commented 6 years ago

Similar to the command-line API that exists already:

dvid node <UUID> <data name> dump <dump type> <file path>

CSV should suffice for the REST endpoint, too.

But if you want to use protobuf, that's okay. (We already have the necessary structure defined for the POST /mappings, so it won't be much work for me to use that code.)

Side note: Most people use , as the delimiter in CSV files...

DocSavage commented 6 years ago

I've updated the documentation for "dump" to reflect it's a space-delimited file if saying CSV leads people to expect commas. In order for the REST endpoint to coincide with the dump command, it will also give space-delimited values.