diff options
author | Pjotr Prins | 2020-07-20 11:52:46 +0100 |
---|---|---|
committer | Pjotr Prins | 2020-07-20 11:52:46 +0100 |
commit | 2fc0987d53f9177844d9a5a9e9e5a2558eb7f697 (patch) | |
tree | 5be3034081a14aaa4a0ae26ef408a927c6dcda57 /test/rest-api.org | |
parent | 0f9a652e08d429d8edcf12638d642003baa5d8ec (diff) | |
download | bh20-seq-resource-2fc0987d53f9177844d9a5a9e9e5a2558eb7f697.tar.gz bh20-seq-resource-2fc0987d53f9177844d9a5a9e9e5a2558eb7f697.tar.lz bh20-seq-resource-2fc0987d53f9177844d9a5a9e9e5a2558eb7f697.zip |
REST API
Diffstat (limited to 'test/rest-api.org')
-rw-r--r-- | test/rest-api.org | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rest-api.org b/test/rest-api.org index 4a7b09b..ed31ad0 100644 --- a/test/rest-api.org +++ b/test/rest-api.org @@ -25,12 +25,18 @@ import requests response = requests.get("http://covid19.genenetwork.org/api/version") response_body = response.json() assert response_body["service"] == "PubSeq", "PubSeq API not found" +response_body #+end_src #+RESULTS: +| service | : | PubSeq | version | : | 0.1 | ** Fetch EBI XML +PubSeq provides an API that is used to export formats that are +suitable for uploading data to EBI/ENA from our [[http://covid19.genenetwork.org/export][EXPORT]] menu. This is +documented [[http://covid19.genenetwork.org/blog?id=using-covid-19-pubseq-part6][here]]. + #+begin_src python :session requests.get("http://covid19.genenetwork.org/api/ebi/sample-MT32690.1.xml").text #+end_src |