From eb4e579a713adf50a43238658b403b5b737e8f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 25 Dec 2018 17:39:40 +0200 Subject: [PATCH] Update docs with the "/start" endpoint. --- hc/front/management/commands/pygmentize.py | 1 + templates/front/details.html | 8 ++++ templates/front/docs.html | 40 +++++++++++++++++-- .../front/snippets/python_requests_start.html | 21 ++++++++++ .../front/snippets/python_requests_start.txt | 20 ++++++++++ 5 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 templates/front/snippets/python_requests_start.html create mode 100644 templates/front/snippets/python_requests_start.txt diff --git a/hc/front/management/commands/pygmentize.py b/hc/front/management/commands/pygmentize.py index 5af2eb8e..350c62f3 100644 --- a/hc/front/management/commands/pygmentize.py +++ b/hc/front/management/commands/pygmentize.py @@ -36,6 +36,7 @@ class Command(BaseCommand): _process("python_urllib2", lexers.PythonLexer()) _process("python_requests", lexers.PythonLexer()) _process("python_requests_fail", lexers.PythonLexer()) + _process("python_requests_start", lexers.PythonLexer()) _process("python_requests_payload", lexers.PythonLexer()) _process("php", lexers.PhpLexer()) _process("powershell", lexers.shell.PowerShellLexer()) diff --git a/templates/front/details.html b/templates/front/details.html index ecbfe18a..27999658 100644 --- a/templates/front/details.html +++ b/templates/front/details.html @@ -35,6 +35,14 @@ {{ check.url }}

Or by sending emails to this address:

{{ check.email }} + +

You can also explictly + + signal a failure + and + + measure job execution time. +