gene.iobio icon indicating copy to clipboard operation
gene.iobio copied to clipboard

Convert IOBIO Webservice API requests to a number of endpoints

Open chmille4 opened this issue 7 years ago • 0 comments

Currently the iobio webservices are called directly in the function. e.g.

var cmd = new iobio.cmd(
            IOBIO.tabix,
            ['-H', vcfURL],
            {ssl: useSSL}
        );

        cmd.on('data', function(data) {
          if (data != undefined) {
            success = true;
            buffer += data;
          }
        });
 ...

Abstract away all iobio commands into endpoint so the above would become something like this

routes.getHeader({onData:Func(), onError:Func()})

I think this could all be placed in a routes directory with a vcf and bam routes file.

The purpose of this is to decouple the API from the gene.iobio code so that we can experiment with monolith and http endpoints

Thoughts?

chmille4 avatar Oct 10 '17 13:10 chmille4