Skip to content

Commit

Permalink
docs: REST API chapter
Browse files Browse the repository at this point in the history
* Adds a new REST API chapter to the documentation.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Feb 7, 2017
1 parent eeba246 commit dbbe595
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Expand Up @@ -46,6 +46,7 @@
'sphinx.ext.graphviz',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
'sphinxcontrib.httpdomain',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -6,6 +6,7 @@

introduction
gettingstarted
restapi
contributing
changes
license
Expand Down
7 changes: 7 additions & 0 deletions docs/restapi.rst
@@ -0,0 +1,7 @@
REST API
========

POST /yadage
------------

.. autofunction:: reana_workflow_controller.app.yadage_endpoint
2 changes: 1 addition & 1 deletion reana_workflow_controller/app.py
Expand Up @@ -28,7 +28,7 @@
import traceback

from flask import Flask, abort, jsonify, redirect, request
from tasks import run_yadage_workflow
from .tasks import run_yadage_workflow

app = Flask(__name__)
app.secret_key = "super secret key"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -47,6 +47,7 @@
'docs': [
'Sphinx>=1.4.4',
'sphinx-rtd-theme>=0.1.9',
'sphinxcontrib-httpdomain>=1.5.0',
],
'tests': tests_require,
}
Expand Down

0 comments on commit dbbe595

Please sign in to comment.