get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 562184,
    "url": "http://patchwork.ozlabs.org/api/patches/562184/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/owrt-patch-20160101-v4-cc-1-r1@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-20160101-v4-cc-1-r1@vittgam.net>",
    "list_archive_url": null,
    "date": "2016-01-03T17:58:32",
    "name": "[OpenWrt-Devel,v4,1/4,CC,RESEND] ramips: Fix whitespace in the rt3052 switch driver.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "52beb45cab3e24236e7041f9d88abffb49bdf315",
    "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-20160101-v4-cc-1-r1@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/562184/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/562184/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 95F7314099F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  4 Jan 2016 04:59:48 +1100 (AEDT)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id BD27228BFBD;\n\tSun,  3 Jan 2016 18:59:06 +0100 (CET)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 8625028BFBD\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tSun,  3 Jan 2016 18:58:06 +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\tSun,  3 Jan 2016 18:58:06 +0100 (CET)",
            "from vl2 (vittgamlaptop2.r1.network.mietitrebbia.rocks\n\t[10.48.3.146]) by mail.vittgam.net with SMTP id u03HwWe8182831;\n\tSun, 3 Jan 2016 18:58:33 +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=UFZS4fmU; 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": "using cached result; rate:hard: -7.6",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net u03HwWe8182831",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=vittgam.net;\n\ts=20150519; t=1451843913;\n\tbh=C1QFk1mYapPclxOl3btDtA89ddQMkcRbGsnP/FJo+Bw=;\n\th=From:To:Subject:Content-Type:Message-ID:In-Reply-To:References;\n\tb=UFZS4fmUZBLTrcf5yhI1VK3JVHC9kPH9xDsVVoplOP41axW8Mw1eSS87vckNDJVXm\n\tHVfs76Aqyr7v/jOrsHXl1L88BvXGd4HfxlkinH9G6QOIUzdQo5MR8l+JQgfGb+ceY9\n\tmWsCIHRv6XeBlxeGOUe5wEetNT6TBvPkIBVmOKAGTKun7XoQXoUdvnbaMISqKusBq/\n\tqde5HoFQwoxpVO9PdBzjuBpjvSiuY0gBb/fXwD3S3eripj7RPbn2/JBruSxERhr/Zu\n\t4u3lUIEjH4NRu9QESRBwQACiFY4DoNmKoMFKWyTAY5JnHLPJ87u7ZezqCwE8FsnFs0\n\tSJWP4Ok7asnqX0TYStolezZY2+fuLpkimZ08K/8fo0s2qMWQhNstjKkowxNebBxEIE\n\tMKHSXPIKnfMp0IRdBGdKqrVhtoHf0dhr32HQNTzsy2jKRehtLFqHr6aOoF1xnwKM9O\n\tyB5hRXSuzz01+0pUoM2btQUNiy+aPvbWhQfbaqtDa8yUVpC861/OBOcWXR6LCvTLDf\n\tNAd3EehGVPcq9IKkSUmBFAfqwHdod1+aRZhVXGfMqWYUVsd2gZRaIfhDFjJ1Lb57tZ\n\taYuBSkXhDGq3gEbeGS4vsyk2vlVexCOBEJO3wA8vKmju05ZczoDbKuqk/VfJ0KEPqa\n\t7LTPPx+sjdKPMO+sblSBE5yk=",
        "Date": "Sun, 3 Jan 2016 18:58:32 +0100",
        "From": "\"Vittorio G (VittGam)\" <openwrt@vittgam.net>",
        "To": "<openwrt-devel@lists.openwrt.org>",
        "Message-ID": "<owrt-patch-20160101-v4-cc-1-r1@vittgam.net>",
        "In-Reply-To": "<owrt-patch-20160101-v4-cc-1@vittgam.net>",
        "References": "<owrt-patch-20160101-v4-cc-1@vittgam.net>",
        "Subject": "[OpenWrt-Devel] [PATCH v4 1/4] [CC] [RESEND] ramips: Fix whitespace\n\tin the rt3052 switch driver.",
        "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": "Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>\n---",
    "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@@ -1417,19 +1417,19 @@ static int esw_probe(struct platform_device *pdev)\n \t}\n \n \tport_map = of_get_property(np, \"ralink,portmap\", NULL);\n-        if (port_map)\n+\tif (port_map)\n \t\tesw->port_map = be32_to_cpu(*port_map);\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",
        "v4",
        "1/4",
        "CC",
        "RESEND"
    ]
}