From 2e96d0d87abd6357868114b0b59ee66b08985235 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 21 Jul 2020 07:52:13 +0100 Subject: Documenting exports and REST API --- bh20simplewebuploader/main.py | 5 +++-- bh20simplewebuploader/templates/export.html | 28 ++++------------------------ 2 files changed, 7 insertions(+), 26 deletions(-) (limited to 'bh20simplewebuploader') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 029c2e3..c306749 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -632,7 +632,8 @@ def validated_page(): @app.route('/export') def export_page(): - return render_template('export.html',menu='EXPORT') + buf = get_html_body('doc/web/export.html',"https://github.com/arvados/bh20-seq-resource/blob/master/doc/web/export.org") + return render_template('export.html',menu='EXPORT',embed=buf) @app.route('/demo') def demo_page(): @@ -641,7 +642,7 @@ def demo_page(): @app.route('/apidoc') def apidoc_page(): buf = get_html_body('test/rest-api.html',"https://github.com/arvados/bh20-seq-resource/blob/master/test/rest-api.org") - return render_template('blog.html',menu='BLOG',embed=buf) + return render_template('blog.html',menu='BLOG',embed=buf,blog=True) @app.route('/blog',methods=['GET']) def blog_page(): diff --git a/bh20simplewebuploader/templates/export.html b/bh20simplewebuploader/templates/export.html index aaceac9..3588e57 100644 --- a/bh20simplewebuploader/templates/export.html +++ b/bh20simplewebuploader/templates/export.html @@ -5,30 +5,10 @@ {% include 'banner.html' %} {% include 'menu.html' %} -

Export Data

-
- - COVID-19 PubSeq allows for exporting forms and data for other - services. - -

SPARQL

- -

- First of all, PubSeq exports a SPARQL endpoint - here that allows - you do do any query on the data. See this - document for - examples. -

- -

Export EBI/ENA Forms

- -

- Uploading data to EBI/ENA with PubSeq is described - here. To - export, first search for an uploaded entry through its - identifier: -

+ + {% if embed %} + {{ embed|safe }} + {% endif %}