aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPjotr Prins2020-07-20 11:52:46 +0100
committerPjotr Prins2020-07-20 11:52:46 +0100
commit2fc0987d53f9177844d9a5a9e9e5a2558eb7f697 (patch)
tree5be3034081a14aaa4a0ae26ef408a927c6dcda57 /test
parent0f9a652e08d429d8edcf12638d642003baa5d8ec (diff)
downloadbh20-seq-resource-2fc0987d53f9177844d9a5a9e9e5a2558eb7f697.tar.gz
bh20-seq-resource-2fc0987d53f9177844d9a5a9e9e5a2558eb7f697.tar.lz
bh20-seq-resource-2fc0987d53f9177844d9a5a9e9e5a2558eb7f697.zip
REST API
Diffstat (limited to 'test')
-rw-r--r--test/rest-api.org6
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