diff options
author | Pjotr Prins | 2020-07-20 12:14:07 +0100 |
---|---|---|
committer | Pjotr Prins | 2020-07-20 12:14:07 +0100 |
commit | 6ee5810042f53023a261aae85df3be3adb16147b (patch) | |
tree | 1c59da0cd5a0d3e66a02b3ec188d8fd8a79944ea /bh20simplewebuploader/main.py | |
parent | 794c8d058d13be5d98c7c91e59516f58bdc59e3f (diff) | |
download | bh20-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.py | 6 |
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 |