aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/main.py
diff options
context:
space:
mode:
authorPjotr Prins2020-07-20 12:14:07 +0100
committerPjotr Prins2020-07-20 12:14:07 +0100
commit6ee5810042f53023a261aae85df3be3adb16147b (patch)
tree1c59da0cd5a0d3e66a02b3ec188d8fd8a79944ea /bh20simplewebuploader/main.py
parent794c8d058d13be5d98c7c91e59516f58bdc59e3f (diff)
downloadbh20-seq-resource-6ee5810042f53023a261aae85df3be3adb16147b.tar.gz
bh20-seq-resource-6ee5810042f53023a261aae85df3be3adb16147b.tar.lz
bh20-seq-resource-6ee5810042f53023a261aae85df3be3adb16147b.zip
Adding an endpoint for documentation
Diffstat (limited to 'bh20simplewebuploader/main.py')
-rw-r--r--bh20simplewebuploader/main.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index aad607d..029c2e3 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -638,6 +638,11 @@ def export_page():
def demo_page():
return render_template('demo.html',menu='DEMO',load_map=True)
+@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)
+
@app.route('/blog',methods=['GET'])
def blog_page():
blog_content = request.args.get('id') # e.g. using-covid-19-pubseq-part3
@@ -652,7 +657,6 @@ def about_page():
buf = get_html_body('doc/web/about.html','https://github.com/arvados/bh20-seq-resource/blob/master/doc/web/about.org')
return render_template('about.html',menu='ABOUT',embed=buf)
-
## Dynamic API functions starting here
## This is quick and dirty for now, just to get something out and demonstrate the queries
## Feel free to rename the functions/endpoints, feel free to process result so we get nicer JSON