get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/814132/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 814132,
    "url": "http://patchwork.ozlabs.org/api/patches/814132/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170915080619.25250-4-xypron.glpk@gmx.de/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170915080619.25250-4-xypron.glpk@gmx.de>",
    "list_archive_url": null,
    "date": "2017-09-15T08:06:12",
    "name": "[U-Boot,03/10] test/py: add a test calling the EFI selftest",
    "commit_ref": "38b1b79021418709bcc55504d1fec31d8a365f56",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "fea573f58c90c06c56bebc34e320100402f102cb",
    "submitter": {
        "id": 61270,
        "url": "http://patchwork.ozlabs.org/api/people/61270/?format=api",
        "name": "Heinrich Schuchardt",
        "email": "xypron.glpk@gmx.de"
    },
    "delegate": {
        "id": 3400,
        "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api",
        "username": "agraf",
        "first_name": "Alexander",
        "last_name": "Graf",
        "email": "agraf@suse.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170915080619.25250-4-xypron.glpk@gmx.de/mbox/",
    "series": [
        {
            "id": 3244,
            "url": "http://patchwork.ozlabs.org/api/series/3244/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3244",
            "date": "2017-09-15T08:06:10",
            "name": "efi_loader: event services & API test",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3244/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814132/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814132/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtp436bQMz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 18:10:27 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 97F29C21FA0; Fri, 15 Sep 2017 08:08:47 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 7E6F0C21FA2;\n\tFri, 15 Sep 2017 08:07:58 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 2E254C21F9E; Fri, 15 Sep 2017 08:07:35 +0000 (UTC)",
            "from mout.gmx.net (mout.gmx.net [212.227.17.22])\n\tby lists.denx.de (Postfix) with ESMTPS id A2189C21FA6\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 08:07:31 +0000 (UTC)",
            "from laptop1.fritz.box ([94.197.120.111]) by mail.gmx.com (mrgmx102\n\t[212.227.17.174]) with ESMTPSA (Nemesis) id 0MVJze-1dvdD83OoQ-00Ygud;\n\tFri, 15 Sep 2017 10:07:09 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "To": "Alexander Graf <agraf@suse.de>",
        "Date": "Fri, 15 Sep 2017 10:06:12 +0200",
        "Message-Id": "<20170915080619.25250-4-xypron.glpk@gmx.de>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170915080619.25250-1-xypron.glpk@gmx.de>",
        "References": "<20170915080619.25250-1-xypron.glpk@gmx.de>",
        "X-Provags-ID": "V03:K0:+9wlvHU+kkA/X32fk5WZaRrMcICVhq5nbEpvxRkTFcOvUNukSj/\n\tvcTn9aD5l+wr1Z7vUVElNtjN6cNt9tA+KO7chVvmgtYYBQr3VRXuoEfbQH2OkN/NwTih1Do\n\tjkJCP1io9EWT0UenuKlHSHVJ8g3+ew3venuZfSJFHCAkLuhoBFQye4Ys/1x/J6KSjVgVQDh\n\tYDrV0qscokbofKQUOXoPA==",
        "X-UI-Out-Filterresults": "notjunk:1; V01:K0:FA7/e8Y/fjA=:qAPfF4E0PiQocARqCL6kEO\n\tKeXwHwOFOaUm0Txt3T++xqouFtkAXAetZow4N4139MVXKvqd/qkg1ovQZgZnlXN8fZePZ5htr\n\tfWQJ+s5AXdqa3iVpEeiJlGQF5+mGn7789bB5BymMN43+pQn4AdqLJB3uWGrkKh5WDnFScFemN\n\tsFD/iyDOInpgB6RODKUzV+9+TgRDcGFabEbEkrqkK5AsREhVKZcWGtuUrZGL0DWh+7VoJGwjN\n\tM6aXcI4Vzidf60Ysyz7jijgG/+sQgoM+ZIhGQ58R9sUgpXanST9tOnT9/XTz+9NWB5cXVWZAP\n\thEYLwuTiDMtH5BZkmmCfQGw/mi9Yq1VCjxT0CGxGO+47igsXWBaWIiATtJB+C2+liCc4pKBF4\n\tcMFau1137McgTurJjCa0DM2a9WOZzKyAzeZpcyJ01Powdudl/1ojjnlpfUUSbBCZKsrIQu1EQ\n\t1S+5idlXPuqBeTsQYmYyAB1VNtdIcCaQ5FKkuoU3HzXfwCEKnQarKcLnAb8KgbwYv9F/2A2KD\n\tu09JS/KxyjwYyzrVHWLyIHnFN/zWKpfjKfIH9310y20p/RhXCf7I74KlP50Iel8YgLNhmSIfb\n\tDA4UGDjqawToqT4V+tQA23krnmpvK1Hf6H/4hUdQDzIz/uXlsjsxzTsli026NzdWPOpl6VqPi\n\tdsfxqZuqtXIE1K1pmCir3OU2u+iidAAGT2PUOl8JhSS6B8wesbq5/cgSzwwE2BDGdI8Ng09iQ\n\tw39xopndQPyc3JP4OIVrZ4lTYGlb+06RUjPhFtm39OgPFvUobj90AeYByaDvg5DPOqRjTRRCs\n\tmzoQn8CzYFtu8mxtZ7Vw5Rlf/Ivdg==",
        "Cc": "=?utf-8?q?=C5=81ukasz_Majewski?= <l.majewski@samsung.com>,\n\tHeinrich Schuchardt <xypron.glpk@gmx.de>, Andy Shevchenko\n\t<andriy.shevchenko@linux.intel.com>, u-boot@lists.denx.de, Fabio Estevam\n\t<fabio.estevam@nxp.com>, Maxime Ripard <maxime.ripard@free-electrons.com>",
        "Subject": "[U-Boot] [PATCH 03/10] test/py: add a test calling the EFI selftest",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "A Python test script is provided that runs the EFI selftest\nif CONFIG_CMD_EFI_SELFTEST=y.\n\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\n test/py/tests/test_efi_selftest.py | 25 +++++++++++++++++++++++++\n 1 file changed, 25 insertions(+)\n create mode 100644 test/py/tests/test_efi_selftest.py",
    "diff": "diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py\nnew file mode 100644\nindex 0000000000..76e282a6c7\n--- /dev/null\n+++ b/test/py/tests/test_efi_selftest.py\n@@ -0,0 +1,25 @@\n+# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.\n+# Copyright (c) 2017, Heinrich Schuchardt <xypron.glpk@gmx.de>\n+#\n+# SPDX-License-Identifier: GPL-2.0\n+\n+# Test efi API implementation\n+\n+import pytest\n+import u_boot_utils\n+\n+@pytest.mark.buildconfigspec('cmd_bootefi_selftest')\n+def test_efi_selftest(u_boot_console):\n+\t\"\"\"\n+\tRun bootefi selftest\n+\t\"\"\"\n+\n+\tu_boot_console.run_command(cmd='bootefi selftest', wait_for_prompt=False)\n+\tm = u_boot_console.p.expect(['Summary: 0 failures', 'Press any key'])\n+\tif m != 0:\n+\t\traise Exception('Failures occured during the EFI selftest')\n+\tu_boot_console.run_command(cmd='', wait_for_echo=False, wait_for_prompt=False);\n+\tm = u_boot_console.p.expect(['resetting', 'U-Boot'])\n+\tif m != 0:\n+\t\traise Exception('Reset failed during the EFI selftest')\n+\tu_boot_console.restart_uboot();\n",
    "prefixes": [
        "U-Boot",
        "03/10"
    ]
}