LAPIS icon indicating copy to clipboard operation
LAPIS copied to clipboard

make it possible to return sequences as JSON or NDJSON

Open fengelniederhammer opened this issue 4 months ago • 0 comments

Currently, the sequences endpoints only return FASTA, which is nice for downloading files. But when working with LAPIS programmatically, a structured response would be better.

Implement getting the sequences as JSON or NDJSON (or both, if easily possible). The default should still be FASTA.

Make sure that the result can still be streamed properly.

  • This should be straight forward for NDJSON.
  • Think about how to stream JSON. (Maybe just write [, then NDJSON lines separated by , and then ]?)

fengelniederhammer avatar Oct 02 '24 09:10 fengelniederhammer