get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 613318,
    "url": "http://patchwork.ozlabs.org/api/patches/613318/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/openwrt-patch-20160421-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": "<openwrt-patch-20160421-1@vittgam.net>",
    "list_archive_url": null,
    "date": "2016-04-21T21:43:09",
    "name": "[OpenWrt-Devel,1/2] lantiq: Fix typo in LED diag script.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "84d57b2725746abe4dd05aa70397775e615fc069",
    "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/openwrt-patch-20160421-1@vittgam.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/613318/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/613318/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",
            "<openwrt-devel@lists.openwrt.org>"
        ],
        "Received": [
            "from arrakis.dune.hu (caladan.dune.hu [78.24.191.180])\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 3qrXLG3W8Bz9t4h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Apr 2016 07:43:18 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id E7B53B80C85;\n\tThu, 21 Apr 2016 23:43:12 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tThu, 21 Apr 2016 23:43:12 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id A296EB80C79\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 21 Apr 2016 23:43:11 +0200 (CEST)",
            "from mail.vittgam.net (unknown [213.239.197.142])\n\tby arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 21 Apr 2016 23:43:11 +0200 (CEST)",
            "from vl3 (vl3.r12.network.mietitrebbia.rocks [10.48.6.117])\n\tby mail.vittgam.net with SMTP id u3LLh9HR142077\n\tfor <openwrt-devel@lists.openwrt.org>; Thu, 21 Apr 2016 23:43:09 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.3 required=5.0 tests=BAYES_00,RDNS_NONE\n\tautolearn=no autolearn_force=no version=3.4.1",
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tCL_IP_EQ_FROM_MX=-3.1; rate: -6.1",
        "X-DKIM": "OpenDKIM Filter v2.4.2 mail.vittgam.net u3LLh9HR142077",
        "Authentication-Results": "mail.vittgam.net; dkim=none (no signature);\n\tdkim-adsp=none (insecure policy)",
        "Date": "Thu, 21 Apr 2016 23:43:09 +0200",
        "From": "\"Vittorio Gambaletta (VittGam)\" <openwrt@vittgam.net>",
        "To": "<openwrt-devel@lists.openwrt.org>",
        "Message-ID": "<openwrt-patch-20160421-1@vittgam.net>",
        "Subject": "[OpenWrt-Devel] [PATCH 1/2] lantiq: Fix typo in LED diag script.",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.20",
        "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=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "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/lantiq/base-files/etc/diag.sh\n+++ b/target/linux/lantiq/base-files/etc/diag.sh\n@@ -25,7 +25,7 @@\n \t\t;;\n \tdone)\n \t\tstatus_led_off\n-\t\t[ -n \"$running\" ] & {\n+\t\t[ -n \"$running\" ] && {\n \t\t\tstatus_led=\"$running\"\n \t\t\tstatus_led_on\n \t\t}\n",
    "prefixes": [
        "OpenWrt-Devel",
        "1/2"
    ]
}