From 2f0c7d6a3fdf85e551b90763d979dc6660e1ecff Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 21 Jan 2019 16:17:41 -0500 Subject: [PATCH] added title to examples --- scripts/generate_json_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/generate_json_api.py b/scripts/generate_json_api.py index 93ef4a516..cd335804a 100644 --- a/scripts/generate_json_api.py +++ b/scripts/generate_json_api.py @@ -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()',