get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 815056,
    "url": "http://patchwork.ozlabs.org/api/patches/815056/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170918175047.14159-1-swarren@wwwdotorg.org/",
    "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": "<20170918175047.14159-1-swarren@wwwdotorg.org>",
    "list_archive_url": null,
    "date": "2017-09-18T17:50:47",
    "name": "[U-Boot] test/py: fix anchors in HTML status report",
    "commit_ref": "117eeb7f84176268c086db7764778d99d832cd71",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f17203333dc521f164fd87c667adf79b1cd6ba2e",
    "submitter": {
        "id": 12517,
        "url": "http://patchwork.ozlabs.org/api/people/12517/?format=api",
        "name": "Stephen Warren",
        "email": "swarren@wwwdotorg.org"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170918175047.14159-1-swarren@wwwdotorg.org/mbox/",
    "series": [
        {
            "id": 3691,
            "url": "http://patchwork.ozlabs.org/api/series/3691/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3691",
            "date": "2017-09-18T17:50:47",
            "name": "[U-Boot] test/py: fix anchors in HTML status report",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3691/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/815056/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/815056/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 3xwtpj2XC8z9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 03:51:07 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid F2CF6C21CB6; Mon, 18 Sep 2017 17:51:01 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 89FBAC21C41;\n\tMon, 18 Sep 2017 17:50:59 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 580C8C21C41; Mon, 18 Sep 2017 17:50:58 +0000 (UTC)",
            "from avon.wwwdotorg.org (avon.wwwdotorg.org [104.237.132.123])\n\tby lists.denx.de (Postfix) with ESMTPS id 3CE2CC21C2B\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 17:50:57 +0000 (UTC)",
            "from swarren-lx1.nvidia.com (thunderhill.nvidia.com\n\t[216.228.112.22])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby avon.wwwdotorg.org (Postfix) with ESMTPSA id B7B9B1C02E3;\n\tMon, 18 Sep 2017 11:50:55 -0600 (MDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "X-Virus-Status": "Clean",
        "X-Virus-Scanned": "clamav-milter 0.99.2 at avon.wwwdotorg.org",
        "From": "Stephen Warren <swarren@wwwdotorg.org>",
        "To": "Tom Rini <trini@konsulko.com>",
        "Date": "Mon, 18 Sep 2017 11:50:47 -0600",
        "Message-Id": "<20170918175047.14159-1-swarren@wwwdotorg.org>",
        "X-Mailer": "git-send-email 2.14.1",
        "X-NVConfidentiality": "public",
        "Cc": "u-boot@lists.denx.de, Stephen Warren <swarren@nvidia.com>",
        "Subject": "[U-Boot] [PATCH] test/py: fix anchors in HTML status report",
        "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": "From: Stephen Warren <swarren@nvidia.com>\n\nThe current code wraps a pre tag inside an a tag. For some reason, this\ncauses at least Firefox to attempt to drag the pre section content when\nusing a mouse drag to select text. Re-order the tags so that the text can\nbe selected using the mouse, at least if you start the drag outside the\ntext (after the end of the line, for example).\n\nSigned-off-by: Stephen Warren <swarren@nvidia.com>\n---\n test/py/multiplexed_log.py | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/test/py/multiplexed_log.py b/test/py/multiplexed_log.py\nindex bf926c3e7762..5bc1bc49d4de 100644\n--- a/test/py/multiplexed_log.py\n+++ b/test/py/multiplexed_log.py\n@@ -365,13 +365,13 @@ $(document).ready(function () {\n \n         self._terminate_stream()\n         self.f.write('<div class=\"' + note_type + '\">\\n')\n-        if anchor:\n-            self.f.write('<a href=\"#%s\">\\n' % anchor)\n         self.f.write('<pre>')\n+        if anchor:\n+            self.f.write('<a href=\"#%s\">' % anchor)\n         self.f.write(self._escape(msg))\n-        self.f.write('\\n</pre>\\n')\n         if anchor:\n-            self.f.write('</a>\\n')\n+            self.f.write('</a>')\n+        self.f.write('\\n</pre>\\n')\n         self.f.write('</div>\\n')\n \n     def start_section(self, marker, anchor=None):\n",
    "prefixes": [
        "U-Boot"
    ]
}