From 2fc0987d53f9177844d9a5a9e9e5a2558eb7f697 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 20 Jul 2020 11:52:46 +0100 Subject: REST API --- test/rest-api.org | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 -- cgit v1.2.3