get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 552993,
    "url": "http://patchwork.ozlabs.org/api/patches/552993/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patch-20151205-1@vittgam.net/",
    "project": {
        "id": 45,
        "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api",
        "name": "OpenWrt development",
        "link_name": "openwrt",
        "list_id": "openwrt-devel.lists.openwrt.org",
        "list_email": "openwrt-devel@lists.openwrt.org",
        "web_url": "http://openwrt.org/",
        "scm_url": "git://git.openwrt.org/openwrt.git",
        "webscm_url": "https://dev.openwrt.org/browser",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<owrt-patch-20151205-1@vittgam.net>",
    "list_archive_url": null,
    "date": "2015-12-05T11:03:11",
    "name": "[OpenWrt-Devel,1/3] ramips: Fix whitespace in the switch driver.",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "81f546f6ef2ff6376a5e53364b0d41ed5a389db9",
    "submitter": {
        "id": 65409,
        "url": "http://patchwork.ozlabs.org/api/people/65409/?format=api",
        "name": "Vittorio Gambaletta",
        "email": "openwrt@vittgam.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patch-20151205-1@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/552993/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/552993/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 5AD2D140A68\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  5 Dec 2015 22:04:01 +1100 (AEDT)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 8D12A28068C;\n\tSat,  5 Dec 2015 12:03:38 +0100 (CET)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 4D2BE280660\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tSat,  5 Dec 2015 12:03:26 +0100 (CET)",
            "from mail.vittgam.net (server1.vittgam.net [213.239.197.142])\n\tby arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tSat,  5 Dec 2015 12:03:24 +0100 (CET)",
            "from mail2.vittgam.net (server2.tincvpn.vittgam.net [10.48.0.5])\n\tby mail.vittgam.net with ESMTP id tB5B3U4S198416\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);\n\tSat, 5 Dec 2015 12:03:30 +0100",
            "from vl2 (vl2.r12.network.mietitrebbia.rocks [10.48.6.146])\n\tby mail2.vittgam.net with SMTP id tB5B3BSs007669;\n\tSat, 5 Dec 2015 12:03:14 +0100"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n\tunprotected) header.d=vittgam.net header.i=@vittgam.net\n\theader.b=Xl7+eBeC; dkim-atps=neutral",
        "X-Spam-Checker-Version": "SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,\n\tT_DKIM_INVALID autolearn=unavailable version=3.3.2",
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -7.6",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net tB5B3U4S198416",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20150519; t=1449313410;\n\tbh=FWyF25JSkC8xYBjLKXggy90ivcZLwcIKF1/7oBtvUnE=;\n\th=Date:From:To:Subject:Content-Type:Message-ID;\n\tb=Xl7+eBeCOI0/28Zsr9an5zj9sYoyUBF0yjUURZRQoSEK5RVqzoMatuSyvX4X6l4/2\n\tXCQalvYKreee3E+4VSjk4eBCNQrew/rhmPf06TfEacdURcqJFYl13ualvrVaILm9+W\n\tUbeOwlj8w1Z2YKaCkGfp2XmnrmN4FcthtRUxPAoOSuFBfVsI3P5F1TeG/rSnfbgPeG\n\tlyGBs6LhYdb3mwC3DkVkG1e4ViAqBo/P+2DR7htN+L79oJ+ZVu6pTi+2MJV0Ql/p5b\n\tD305DIqV6/cwB9pWBVgbWaOyJnT7FhpqM2+UpFivWR6ZvOStclZHwHDSiqUhnTKmqN\n\tvUA31RZ93tlDl7gwDhzjD79WLEM2EToG2WLz/AHEHll4/60WZROCiLVqKkmEr76IM6\n\tPSWFReSvLZDbZTG3U+5eZIoGRW+1TFoBD9UosSzKOC9cmCtmnasSxdGAEZ7lfJrZfo\n\tbPTANxl9z3uiuMPXp+sukU8n0qpfs2FjURvrd0h6erfiTM5vJT6WMCnYrV8gyB0qAL\n\tlDSJU5qWT7qMQOls2DpHikkoZdCj8rhmzwQ3tmByzCBq72XnCsAWuuy5zVA09Yysjh\n\txSg9CecWA0SeghnTlvaHFZhHdBP2agw928l5Lw/b4qVIl6K5gbsLQM/rLHztwaLrVL\n\t9mq67qoaf+zcdb47y1toX9FE=",
        "Date": "Sat, 5 Dec 2015 12:03:11 +0100",
        "From": "\"Vittorio G (VittGam)\" <openwrt@vittgam.net>",
        "To": "<openwrt-devel@lists.openwrt.org>",
        "Message-ID": "<owrt-patch-20151205-1@vittgam.net>",
        "Subject": "[OpenWrt-Devel] [PATCH 1/3] ramips: Fix whitespace in the switch\n\tdriver.",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>",
        "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>",
        "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>",
        "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>",
        "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "openwrt-devel-bounces@lists.openwrt.org",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>"
    },
    "content": "Also avoid using two variables where one can be used.\n\nSigned-off-by: Vittorio Gambaletta <openwrt@vittgam.net>\n\n---\n\nPlease apply to both trunk and CC.",
    "diff": "--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c\n+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c\n@@ -1373,7 +1373,7 @@ static int esw_probe(struct platform_device *pdev)\n {\n \tstruct device_node *np = pdev->dev.of_node;\n \tconst struct rt305x_esw_platform_data *pdata;\n-\tconst __be32 *port_map, *reg_init;\n+\tconst __be32 *reg_init;\n \tstruct rt305x_esw *esw;\n \tstruct switch_dev *swdev;\n \tstruct resource *res, *irq;\n@@ -1416,20 +1416,20 @@ static int esw_probe(struct platform_device *pdev)\n \t\tgoto free_esw;\n \t}\n \n-\tport_map = of_get_property(np, \"ralink,portmap\", NULL);\n-        if (port_map)\n-\t\tesw->port_map = be32_to_cpu(*port_map);\n+\treg_init = of_get_property(np, \"ralink,portmap\", NULL);\n+\tif (reg_init)\n+\t\tesw->port_map = be32_to_cpu(*reg_init);\n \n \treg_init = of_get_property(np, \"ralink,fct2\", NULL);\n-        if (reg_init)\n+\tif (reg_init)\n \t\tesw->reg_initval_fct2 = be32_to_cpu(*reg_init);\n \n \treg_init = of_get_property(np, \"ralink,fpa2\", NULL);\n-        if (reg_init)\n+\tif (reg_init)\n \t\tesw->reg_initval_fpa2 = be32_to_cpu(*reg_init);\n \n \treg_init = of_get_property(np, \"ralink,led_polarity\", NULL);\n-        if (reg_init)\n+\tif (reg_init)\n \t\tesw->reg_led_polarity = be32_to_cpu(*reg_init);\n \n \tswdev = &esw->swdev;\n",
    "prefixes": [
        "OpenWrt-Devel",
        "1/3"
    ]
}