janelia-flyem / dvid

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

bulk count endpoint for labelsz #306

Closed olbris closed 5 years ago

olbris commented 5 years ago

We'd like a bulk "count" endpoint for labelsz. This call would be used when populating the sequencer; instead of making two calls per line in the table (potentially 100k calls or more), only two total calls would be required. Suggested form:

GET <api URL>/node/<UUID>/<data name>/counts/<index type>

Note "counts" is plural. <index type> is the same as individual GET call (eg, PostSyn, AllSyn, etc).

The body of the request will contain a json list of labels. Return value should be like the /top endpoint: [ { "Label": 188, "PreSyn": 81 }, { "Label": 23, "PreSyn": 65 }, { "Label": 8137, "PreSyn": 58 } ]

DocSavage commented 5 years ago

@olbris I think the formatting got lost in translation...

olbris commented 5 years ago

You are correct--Markdown tried to interpret the special characters. Fixed.