get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 624524,
    "url": "http://patchwork.ozlabs.org/api/patches/624524/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1463759599-5053-3-git-send-email-sven.eckelmann@open-mesh.com/",
    "project": {
        "id": 54,
        "url": "http://patchwork.ozlabs.org/api/projects/54/?format=api",
        "name": "LEDE development",
        "link_name": "lede",
        "list_id": "lede-dev.lists.infradead.org",
        "list_email": "lede-dev@lists.infradead.org",
        "web_url": "http://lede-project.org/",
        "scm_url": "",
        "webscm_url": "http://git.lede-project.org/",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1463759599-5053-3-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-05-20T15:53:09",
    "name": "[LEDE-DEV,03/13] ar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "8c1964b218107598f7193f4384ffcaa641ea7012",
    "submitter": {
        "id": 68437,
        "url": "http://patchwork.ozlabs.org/api/people/68437/?format=api",
        "name": "Sven Eckelmann",
        "email": "sven.eckelmann@open-mesh.com"
    },
    "delegate": {
        "id": 54613,
        "url": "http://patchwork.ozlabs.org/api/users/54613/?format=api",
        "username": "blogic",
        "first_name": "John",
        "last_name": "Crispin",
        "email": "blogic@openwrt.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1463759599-5053-3-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/624524/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/624524/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2001:1868:205::9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3rBCFp0ymJz9t6M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 21 May 2016 01:55:42 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1b3mkK-0005V9-UW; Fri, 20 May 2016 15:53:52 +0000",
            "from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c])\n\tby bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat\n\tLinux)) id 1b3mkI-0005SO-3u\n\tfor lede-dev@lists.infradead.org; Fri, 20 May 2016 15:53:51 +0000",
            "by mail-wm0-x22c.google.com with SMTP id a17so11373848wme.0\n\tfor <lede-dev@lists.infradead.org>;\n\tFri, 20 May 2016 08:53:29 -0700 (PDT)",
            "from sven-desktop.home.narfation.org\n\t(p579E7469.dip0.t-ipconnect.de. [87.158.116.105])\n\tby smtp.gmail.com with ESMTPSA id\n\to129sm5147502wmb.17.2016.05.20.08.53.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 20 May 2016 08:53:28 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=open-mesh-com.20150623.gappssmtp.com\n\theader.i=@open-mesh-com.20150623.gappssmtp.com\n\theader.b=uEsR0v+J; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=open-mesh-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=XhQNomq8qZR5W2IE5r4E5v57mjwgTt6rZvEwyzlLIhc=;\n\tb=uEsR0v+JG4D7SvxqXcaWIvrmOyhgHdbljExYlUrQztcIM1/N82hCMHlHgeHvZe5wiv\n\tvENu0PO4fwpzJluEJwojrQ4wdrdfecHoYa6pZpcKZJkkZjW4Xt56y8LIRtrHtEKKDTCV\n\t1h+0mQoNFYtHRn7KKVrCV3PEJpbZjY6pb1KE5WMcLh+kaRlN0/ryuUVsIGHiauvVzlSg\n\tPEMzQCe1qy/cnFg65XYQ3H2nANYvPNEQeT1I9nUUfDXOS04iXyTkxYe8NOHjSnXoIBWQ\n\teko/NsXdEzIhLWXTSfBiL1aVHiR5u6bxT0wY6Km2ryu+TzsoUL7hao9AXkbXPOnLThEb\n\tVFlg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=XhQNomq8qZR5W2IE5r4E5v57mjwgTt6rZvEwyzlLIhc=;\n\tb=K7KKrRyrGuvVIN0Hv19ZGL/Bf4WW3O2e9U8nh1I0/3km23sZmvcPB7CBv7lKKBYlct\n\t/uohq0F0SlANSRQjHjUDOdpN9j0v6Dm20F50z0wF9XSGoFlZSsbMaygQyLXfiZIXx9Cj\n\t9fOkHpZcBzF6sYchWac76Y38PmatH+DvAaK+wULa0iUIbhMuiT9DNNZ5xX2MfF7FvfSU\n\tlL5lt5Aaosa2N5bRAEWkCHZBzXL4hd+MMe9VBwiUGJBE6X1SLQPD6F8xhPZMwH0ofVs7\n\tKeZve4+GEHnt4DNMk122XrzY8l7R0mToR2HW1csUHD3CR+qRVUDe3XlnXD8ni5Ub3pQE\n\tMpQw==",
        "X-Gm-Message-State": "AOPr4FXVcyJOaH3DhKGp1O10WaT++ou2i18XXXX/ex42lQTqtxeTdRG691MA4v3EuZ7j4QVx",
        "X-Received": "by 10.194.162.130 with SMTP id ya2mr4074656wjb.141.1463759608435;\n\tFri, 20 May 2016 08:53:28 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "lede-dev@lists.infradead.org",
        "Date": "Fri, 20 May 2016 17:53:09 +0200",
        "Message-Id": "<1463759599-5053-3-git-send-email-sven.eckelmann@open-mesh.com>",
        "X-Mailer": "git-send-email 2.8.1",
        "In-Reply-To": "<1463759599-5053-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "References": "<1463759599-5053-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20160520_085350_308410_F0125337 ",
        "X-CRM114-Status": "UNSURE (   8.61  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-0.8 (/)",
        "X-Spam-Report": "SpamAssassin version 3.4.0 on bombadil.infradead.org summary:\n\tContent analysis details:   (-0.8 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2a00:1450:400c:c09:0:0:0:22c listed in] [list.dnswl.org]\n\t1.0 FSL_HELO_HOME          No description available.\n\t0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid",
        "Subject": "[LEDE-DEV] [PATCH 03/13] ar71xx: enable sysupgrade for the OpenMesh\n\tOM2P-HSv3",
        "X-BeenThere": "lede-dev@lists.infradead.org",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "<lede-dev.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/lede-dev/>",
        "List-Post": "<mailto:lede-dev@lists.infradead.org>",
        "List-Help": "<mailto:lede-dev-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>",
        "Cc": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>",
        "Errors-To": "lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n---\n target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh | 1 +\n target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 ++\n 2 files changed, 3 insertions(+)",
    "diff": "diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\nindex bc362a7..270ef40 100644\n--- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\n+++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\n@@ -47,6 +47,7 @@ platform_check_image_target_openmesh()\n \t\t\t[ \"$board\" = \"om2p-lc\" ] && return 0\n \t\t\t[ \"$board\" = \"om2p-hs\" ] && return 0\n \t\t\t[ \"$board\" = \"om2p-hsv2\" ] && return 0\n+\t\t\t[ \"$board\" = \"om2p-hsv3\" ] && return 0\n \t\t\techo \"Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform\"\n \t\t\treturn 1\n \t\t\t;;\ndiff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\nindex 0d6aa6b..ec1cdbd 100755\n--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\n+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\n@@ -322,6 +322,7 @@ platform_check_image() {\n \tom2pv2 | \\\n \tom2p-hs | \\\n \tom2p-hsv2 | \\\n+\tom2p-hsv3 | \\\n \tom2p-lc | \\\n \tom5p | \\\n \tom5p-an | \\\n@@ -581,6 +582,7 @@ platform_do_upgrade() {\n \tom2pv2 | \\\n \tom2p-hs | \\\n \tom2p-hsv2 | \\\n+\tom2p-hsv3 | \\\n \tom2p-lc | \\\n \tom5p | \\\n \tom5p-an | \\\n",
    "prefixes": [
        "LEDE-DEV",
        "03/13"
    ]
}