From f44cbe10ee5dc040d090d0350c626d1982fc6f6c Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 5 Nov 2020 11:22:26 +0000 Subject: Updated API doc --- test/rest-api.html | 148 ++++++++++++++++++++++------------------------------- 1 file changed, 62 insertions(+), 86 deletions(-) (limited to 'test/rest-api.html') diff --git a/test/rest-api.html b/test/rest-api.html index 6e5bf5a..2059ccb 100644 --- a/test/rest-api.html +++ b/test/rest-api.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + PubSeq REST API @@ -40,7 +40,7 @@ } pre.src { position: relative; - overflow: visible; + overflow: auto; padding-top: 1.2em; } pre.src:before { @@ -195,50 +195,26 @@ @@ -252,31 +228,31 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 PubSeq REST API

+
+

1 PubSeq REST API

Here we document the public REST API that comes with PubSeq. The tests -run in the amazing emacs org-babel. See the bottom of this document -for running the tests inside emacs. +run in emacs org-babel. See the bottom of this document for running +the tests inside emacs. See bottom of the page how to run tests.

- -
-

1.2 Search for an entry

+
-
-

1.3 Fetch metadata

+
+

1.3 Fetch metadata

Using above collection link you can fetch the metadata in JSON as it @@ -423,7 +399,7 @@ because is does a bit more in terms of expansion

-
requests.get(baseURL+"/api/sample/MT533203.1.json").json()
+
requests.get(baseURL+"/api/sample/MT533203.1.json").json()
 
@@ -483,13 +459,13 @@ because is does a bit more in terms of expansion collection : -http://collections.lugli.arvadosapi.com/c=0015b0d65dfd2e82bb3cee4436bf2893+126 +http://collections.lugli.arvadosapi.com/c=b16901333ea1754a1e0409bf3caf7d22+126 date : 2020-04-27 fasta : -http://collections.lugli.arvadosapi.com/c=0015b0d65dfd2e82bb3cee4436bf2893+126/sequence.fasta +http://collections.lugli.arvadosapi.com/c=b16901333ea1754a1e0409bf3caf7d22+126/sequence.fasta id : MT533203.1 @@ -513,8 +489,8 @@ because is does a bit more in terms of expansion -