Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for file to app mapping endpoint re query params for regular http queries #112

Open
MrCreosote opened this issue Jun 29, 2021 · 1 comment

Comments

@MrCreosote
Copy link
Member

MrCreosote commented Jun 29, 2021

Currently shows usage for a custom client, which doesn't translate to curl / requests / etc.

Correct query for multiple files with requests:

In [15]: r = requests.get('https://ci.kbase.us/services/staging_service/importer
    ...: _mappings/?file_list=foo.gff.gz&file_list=foo.fa.gz')                  
In [16]: r.json()['mappings']                                                   
Out[16]: 
[[{'id': 'gff_genome', 'title': 'GFF/FASTA Genome', 'app_weight': 1},
  {'id': 'gff_metagenome', 'title': 'GFF/FASTA MetaGenome', 'app_weight': 1}],
 [{'id': 'assembly', 'title': 'Assembly', 'app_weight': 1},
  {'id': 'gff_genome', 'title': 'GFF/FASTA Genome', 'app_weight': 1},
  {'id': 'gff_metagenome', 'title': 'GFF/FASTA MetaGenome', 'app_weight': 1}]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants