diff options
author | Pjotr Prins | 2021-01-05 09:34:26 +0000 |
---|---|---|
committer | Pjotr Prins | 2021-01-05 09:34:26 +0000 |
commit | 9d75ce088e6388bf23ae077fd06b2a3f51be1bda (patch) | |
tree | 81a4491ca0dd37b458025cc7aa3e553a77b0fb30 /test | |
parent | 3c09a92423408d01b64e1b842c6b96778939d098 (diff) | |
download | bh20-seq-resource-9d75ce088e6388bf23ae077fd06b2a3f51be1bda.tar.gz bh20-seq-resource-9d75ce088e6388bf23ae077fd06b2a3f51be1bda.tar.lz bh20-seq-resource-9d75ce088e6388bf23ae077fd06b2a3f51be1bda.zip |
API: fix returned record to include original metadata
Diffstat (limited to 'test')
-rw-r--r-- | test/rest-api.org | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/rest-api.org b/test/rest-api.org index 66639c3..2ea2b11 100644 --- a/test/rest-api.org +++ b/test/rest-api.org @@ -36,6 +36,35 @@ curl http://covid19.genenetwork.org/api/version } #+end_src +The current API can fetch data + +#+begin_src js +curl http://covid19.genenetwork.org/api/search?s=MT533203.1 +[ + { + "collection": "http://covid19.genenetwork.org/resource", + "fasta": "http://covid19.genenetwork.org/resource/lugli-4zz18-uovend31hdwa5ks", + "id": "MT533203.1", + "info": "http://identifiers.org/insdc/MT533203.1#sequence" + } +] + +curl http://covid19.genenetwork.org/api/sample/MT533203.1.json +[ + { + "collection": "http://covid19.genenetwork.org/resource", + "date": "2020-04-27", + "fasta": "http://covid19.genenetwork.org/resource/lugli-4zz18-uovend31hdwa5ks", + "id": "MT533203.1", + "info": "http://identifiers.org/insdc/MT533203.1#sequence", + "mapper": "minimap v. 2.17", + "sequencer": "http://www.ebi.ac.uk/efo/EFO_0008632", + "specimen": "http://purl.obolibrary.org/obo/NCIT_C155831" + } +] +#+end_src + + The Python3 version is #+begin_src python :session :exports both |