get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818801,
    "url": "http://patchwork.ozlabs.org/api/patches/818801/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170926192142.42308-13-sjg@chromium.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": "<20170926192142.42308-13-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-09-26T19:21:40",
    "name": "[U-Boot,v2,12/14] log: sandbox: Enable logging",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6160d1bfa5bdd82649c704093983a8407318546c",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170926192142.42308-13-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 5217,
            "url": "http://patchwork.ozlabs.org/api/series/5217/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=5217",
            "date": "2017-09-26T19:21:28",
            "name": "log: Add a new logging feature",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/5217/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818801/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818801/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>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"li9iCJW0\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1rfT1tGxz9t3F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 05:31:13 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid EA372C21F03; Tue, 26 Sep 2017 19:26:39 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id EA648C21F50;\n\tTue, 26 Sep 2017 19:24:46 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 42DE8C21F19; Tue, 26 Sep 2017 19:22:32 +0000 (UTC)",
            "from mail-oi0-f41.google.com (mail-oi0-f41.google.com\n\t[209.85.218.41])\n\tby lists.denx.de (Postfix) with ESMTPS id 74C92C21F3A\n\tfor <u-boot@lists.denx.de>; Tue, 26 Sep 2017 19:22:28 +0000 (UTC)",
            "by mail-oi0-f41.google.com with SMTP id v188so13470288oia.5\n\tfor <u-boot@lists.denx.de>; Tue, 26 Sep 2017 12:22:28 -0700 (PDT)",
            "from kiwi.bld.corp.google.com ([2620:0:10f2:0:c194:3fa6:8abc:2569])\n\tby smtp.gmail.com with ESMTPSA id\n\tl184sm10203058oig.54.2017.09.26.12.22.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 26 Sep 2017 12:22:25 -0700 (PDT)",
            "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid 47A21141727; Tue, 26 Sep 2017 13:22:24 -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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=yjLt90wU8CFSzJVlRh34y6vYpREdmThye7oOdFoOFSg=;\n\tb=li9iCJW0a01PJZi6h+RS4FXzrVZlLLJw2EU9EOCvl84Ad1KRCJ95qnL4O8t60iADJY\n\tDlj6apg13GM734BIDkS7zE7EEuBzeCPX+qGq+9eNn65okEPREwiIoiFHMIBk8F2RZwRb\n\t1mhyB7jH+EMZ4bJ4KC4HUU/4FOkqU1DMW9mWTGPE1ejy7w3QpPual7yMVZ8Dfj1eeSUY\n\tnlFDpNeWb7AU7FP8UHjagdaxxjwBFwI4lX8sK+EmXA+PruBrgby5Xm5WvFvw0farxxn9\n\t5zTB7/1NChuCXVc7BVbgiaVpVSphWKYkVii4bo5tqgRJ4S82/m835cLE2ap47OLDIvbs\n\tZVVw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=yjLt90wU8CFSzJVlRh34y6vYpREdmThye7oOdFoOFSg=;\n\tb=fgGqme1n5aht+hszlG9UBc4CqRptcG0S/gVP/biR0mQOiAJrRGf18zhrlHOip1RFX6\n\tXMpzcB1JwhA8VUx8ZOSwhNsftValRpRPvjbv7pqgZy1Yuh+yOw962f5yprBD0+G+JwIj\n\tJCaMr6bEvVi5McNfQlb1Kcf4MZpzguLH63OPWTTUNx9IsWOgU8LT3rqJShTL4Z0Ad4H7\n\taTM5wCj239F7PCtx9yTfp2fP7FqxiQVyJ/98pZIBtEPVtWtnPfOztFV3PvPDJ+GBMYez\n\tPLmzfjfcgesWAD/OJeTeG8QWz33c/fjWm0cjU3sJAYm9jwBrF2lqz1UePDYYhQY4ka1Q\n\tCGcQ==",
        "X-Gm-Message-State": "AHPjjUgWkHLBtGpJ5luRxIVfeRhODC6limPbyR3yNfxA9rHw4ncrxDC6\n\tYPO5mhphGbENHh95SlbmJf8UnQ==",
        "X-Google-Smtp-Source": "AOwi7QDzdBmas/WPv9Dt1PZdZrfRBaNHS+GoPV+RmHdfHP/4CKAdftyEpMHvpM1kM64QI6fqKnZBPQ==",
        "X-Received": "by 10.157.73.171 with SMTP id g43mr2738596otf.223.1506453747105; \n\tTue, 26 Sep 2017 12:22:27 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Tue, 26 Sep 2017 13:21:40 -0600",
        "Message-Id": "<20170926192142.42308-13-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.1.992.g2c7b836f3a-goog",
        "In-Reply-To": "<20170926192142.42308-1-sjg@chromium.org>",
        "References": "<20170926192142.42308-1-sjg@chromium.org>",
        "Cc": "Tom Rini <trini@konsulko.com>",
        "Subject": "[U-Boot] [PATCH v2 12/14] log: sandbox: Enable logging",
        "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": "Enable all logging features on sandbox so that the tests can be run.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\nReviewed-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\nChanges in v2:\n- Change sandbox log level to 6\n\n configs/sandbox_defconfig | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig\nindex 93ea6889a0..9637d7098c 100644\n--- a/configs/sandbox_defconfig\n+++ b/configs/sandbox_defconfig\n@@ -16,6 +16,8 @@ CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000\n CONFIG_SILENT_CONSOLE=y\n CONFIG_PRE_CONSOLE_BUFFER=y\n CONFIG_PRE_CON_BUF_ADDR=0x100000\n+CONFIG_LOG=y\n+CONFIG_LOG_MAX_LEVEL=6\n CONFIG_CMD_CPU=y\n CONFIG_CMD_LICENSE=y\n CONFIG_CMD_BOOTZ=y\n@@ -64,6 +66,7 @@ CONFIG_CMD_CBFS=y\n CONFIG_CMD_CRAMFS=y\n CONFIG_CMD_EXT4_WRITE=y\n CONFIG_CMD_MTDPARTS=y\n+CONFIG_CMD_LOG=y\n CONFIG_MAC_PARTITION=y\n CONFIG_AMIGA_PARTITION=y\n CONFIG_OF_CONTROL=y\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "12/14"
    ]
}