Skip to content

Commit

Permalink
docs: added get_workflow_logs function under rest API docs section
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Feb 25, 2021
1 parent 6a602c2 commit 58ae79b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ API docs
========

.. automodule:: reana_client.api.client
:members: create_workflow_from_json, upload_to_server, upload_file, start_workflow, list_files, get_workflow_status, download_file
:members: create_workflow_from_json, upload_to_server, upload_file, start_workflow, list_files, get_workflow_status, download_file, get_workflow_logs

.. include:: ../CHANGES.rst

Expand Down
9 changes: 8 additions & 1 deletion reana_client/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,14 @@ def upload_file(workflow, file_, file_name, access_token):


def get_workflow_logs(workflow, access_token, steps=None, page=None, size=None):
"""Get logs from a workflow engine."""
"""Get logs from a workflow engine.
:param workflow: name or id which identifies the workflow.
:param access_token: access token of the current user.
:param steps: list of step names to get logs for.
:param page: page number of returned log list.
:param size: page size of returned log list.
"""
try:
(response, http_response) = current_rs_api_client.api.get_workflow_logs(
workflow_id_or_name=workflow,
Expand Down

0 comments on commit 58ae79b

Please sign in to comment.