added title to examples

This commit is contained in:
Lex Berezhny 2019-01-21 16:17:41 -05:00
parent 59e1df9efa
commit 2f0c7d6a3f

View file

@ -52,6 +52,7 @@ def get_api(obj):
'arguments': arguments,
'returns': returns.strip(),
'examples': [{
'title': f"performing {name} operation",
'curl': f"""curl -d'{{"method": "{name}"}}' http://localhost:5279/""",
'lbrynet': f'lbrynet {name} --some-arg=foo',
'python': f'requests.post("http://localhost:5279", json={{"method": "{name}"}}).json()',