[doc] document journal display

This commit is contained in:
Laurent Peuch 2018-01-06 11:18:28 +01:00
parent 021a989c03
commit d92b8562d0
2 changed files with 8 additions and 1 deletions

View file

@ -1608,7 +1608,7 @@ journals:
### journals_display() ### journals_display()
display: display:
action_help: List journals action_help: Display a journal content
api: GET /journals/<file_name> api: GET /journals/<file_name>
arguments: arguments:
file_name: file_name:

View file

@ -74,6 +74,13 @@ def journals_list(limit=None):
def journals_display(file_name): def journals_display(file_name):
"""
Display a journal content
Argument:
file_name
"""
if not os.path.exists(JOURNALS_PATH): if not os.path.exists(JOURNALS_PATH):
# TODO raise exception # TODO raise exception
return {} return {}