get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1530003,
    "url": "http://patchwork.ozlabs.org/api/patches/1530003/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20210920084016.2536084-2-adeep@lexina.in/",
    "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": "<20210920084016.2536084-2-adeep@lexina.in>",
    "list_archive_url": null,
    "date": "2021-09-20T08:40:14",
    "name": "[v3,1/3] ARM: amlogic: add JetHub common config header",
    "commit_ref": "15eda54676058226fac7c642db03f3f533026522",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "eb861b89c4755598b1fd3820162d5e764e57e53b",
    "submitter": {
        "id": 82459,
        "url": "http://patchwork.ozlabs.org/api/people/82459/?format=api",
        "name": "Viacheslav Bocharov",
        "email": "adeep@lexina.in"
    },
    "delegate": {
        "id": 84350,
        "url": "http://patchwork.ozlabs.org/api/users/84350/?format=api",
        "username": "narmstrong",
        "first_name": "Neil",
        "last_name": "Armstrong",
        "email": "narmstrong@baylibre.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20210920084016.2536084-2-adeep@lexina.in/mbox/",
    "series": [
        {
            "id": 263079,
            "url": "http://patchwork.ozlabs.org/api/series/263079/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=263079",
            "date": "2021-09-20T08:40:14",
            "name": "ARM: meson: add support for JetHub D1/H1",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/263079/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1530003/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1530003/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=lexina.in header.i=@lexina.in header.a=rsa-sha256\n header.s=dkim header.b=XFRd56Ig;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=lexina.in",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=lexina.in header.i=@lexina.in header.b=\"XFRd56Ig\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=lexina.in",
            "phobos.denx.de; spf=pass smtp.mailfrom=adeep@lexina.in"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4HCdLJ6z2kz9sPT\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Sep 2021 18:40:40 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 5FB3180F03;\n\tMon, 20 Sep 2021 10:40:31 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id D5EA882952; Mon, 20 Sep 2021 10:40:27 +0200 (CEST)",
            "from mx.msync.work (mx.msync.work [IPv6:2a01:4f9:2b:2dc2::3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id AC34C81468\n for <u-boot@lists.denx.de>; Mon, 20 Sep 2021 10:40:23 +0200 (CEST)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 35EF810D3D4; Mon, 20 Sep 2021 08:40:22 +0000 (UTC)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=lexina.in; s=dkim;\n t=1632127222; h=from:subject:date:message-id:to:cc:mime-version:\n content-transfer-encoding:in-reply-to:references;\n bh=kKYp/Sw3quC7qKfu6cSExkEtEgOYCbEo/UTxedjpwOU=;\n b=XFRd56Ig6SS+0HRSqjMgtlluFGzIpcVnTrx9rJj579cgrAdUmIThSQQfVe06gbbO7OV+1d\n Ex0VIxyvhrXzd10EreinPxdgee8AntNGMsmRMkR1EUmsmfUHFIVl0cAAnyos84es9CmNmf\n pWG5wUI6ocPesI3PLqEqDI8ZV07dDdoQPM53gkLZUig7A3dRNasHWAuH2fcLyrpxMGN6Mk\n wnjnMAyQJZJVz6BubklRhuvxc/TUbC62XSOcF2A7p7OeHTRHT73SHIdRHQIu+nBT/666st\n PGH3rRca0k43wsV2igw8g5cqtSm2DasbqYsykfxjoLIyFms6PxT/D2pzal3Gig==",
        "From": "Vyacheslav Bocharov <adeep@lexina.in>",
        "To": "Neil Armstrong <narmstrong@baylibre.com>",
        "Cc": "u-boot@lists.denx.de,\n\tu-boot-amlogic@groups.io",
        "Subject": "[PATCH v3 1/3] ARM: amlogic: add JetHub common config header",
        "Date": "Mon, 20 Sep 2021 11:40:14 +0300",
        "Message-Id": "<20210920084016.2536084-2-adeep@lexina.in>",
        "In-Reply-To": "<20210920084016.2536084-1-adeep@lexina.in>",
        "References": "<20210920084016.2536084-1-adeep@lexina.in>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Last-TLS-Session-Version": "TLSv1.3",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.2 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "JetHub devices uses its own boot sequence with \"rescue\" button\n\nSigned-off-by: Vyacheslav Bocharov <adeep@lexina.in>\n---\n include/configs/jethub.h | 40 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 40 insertions(+)\n create mode 100644 include/configs/jethub.h",
    "diff": "diff --git a/include/configs/jethub.h b/include/configs/jethub.h\nnew file mode 100644\nindex 0000000000..35f85095ac\n--- /dev/null\n+++ b/include/configs/jethub.h\n@@ -0,0 +1,40 @@\n+/* SPDX-License-Identifier: GPL-2.0+ */\n+/*\n+ * Configuration for JetHome devices\n+ * Copyright (C) 2021 Vyacheslav Bocharov\n+ * Author: Vyacheslav Bocharov <adeep@lexina.in>\n+ */\n+\n+#ifndef __JETHUB_CONFIG_H\n+#define __JETHUB_CONFIG_H\n+\n+#if defined(CONFIG_MESON_AXG)\n+#define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \\\n+\t\"bootcmd_rescue=\" \\\n+\t\t\"if gpio input 10; then \" \\\n+\t\t\"run bootcmd_usb0;\" \\\n+\t\t\"fi;\\0\"\n+#else\n+#define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \\\n+\t\"bootcmd_rescue=\" \\\n+\t\t\"if test \\\"${userbutton}\\\" = \\\"true\\\"; then \" \\\n+\t\t\"run bootcmd_mmc0; \" \\\n+\t\t\"fi;\\0\"\n+#endif\n+\n+#define BOOTENV_DEV_NAME_RESCUE(devtypeu, devtypel, instance) \\\n+\t\"rescue \"\n+\n+#ifndef BOOT_TARGET_DEVICES\n+#define BOOT_TARGET_DEVICES(func) \\\n+\tfunc(RESCUE, rescue, na) \\\n+\tfunc(MMC, mmc, 1) \\\n+\tfunc(MMC, mmc, 0) \\\n+\tBOOT_TARGET_DEVICES_USB(func) \\\n+\tfunc(PXE, pxe, na) \\\n+\tfunc(DHCP, dhcp, na)\n+#endif\n+\n+#include <configs/meson64.h>\n+\n+#endif /* __JETHUB_CONFIG_H */\n",
    "prefixes": [
        "v3",
        "1/3"
    ]
}