get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 740980,
    "url": "http://patchwork.ozlabs.org/api/patches/740980/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1490010953-7305-2-git-send-email-yszhou4tech@gmail.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": "<1490010953-7305-2-git-send-email-yszhou4tech@gmail.com>",
    "list_archive_url": null,
    "date": "2017-03-20T11:55:50",
    "name": "[LEDE-DEV,v2,1/4] build: cleanup tmp/ dir of target rootfs",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c7498aaaba2cd5385cc70aec5f87277e120b79e8",
    "submitter": {
        "id": 65295,
        "url": "http://patchwork.ozlabs.org/api/people/65295/?format=api",
        "name": "Yousong Zhou",
        "email": "yszhou4tech@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1490010953-7305-2-git-send-email-yszhou4tech@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/740980/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/740980/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[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3vmvYY55sLz9s73\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 20 Mar 2017 22:56:33 +1100 (AEDT)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1cpvvJ-0007lE-AS; Mon, 20 Mar 2017 11:56:29 +0000",
            "from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1cpvvG-0007h2-11\n\tfor lede-dev@lists.infradead.org; Mon, 20 Mar 2017 11:56:27 +0000",
            "by mail-pf0-x242.google.com with SMTP id p189so11460105pfp.0\n\tfor <lede-dev@lists.infradead.org>;\n\tMon, 20 Mar 2017 04:56:03 -0700 (PDT)",
            "from titan.office.mos ([103.29.140.57])\n\tby smtp.gmail.com with ESMTPSA id\n\tn29sm30162122pfi.101.2017.03.20.04.56.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 20 Mar 2017 04:56:02 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"PPDFMdP2\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"PgSvEjkz\"; dkim-atps=neutral",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References:\n\tIn-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=o5MODn+vwNQZcfgBrfdNpEWGWJO+ji++F/hBSfXOsLs=;\n\tb=PPDFMdP2655rlG\n\tDhwkkZm7hJAvnhwCFVHfGmaZGi8Ejao4I+VvFk+jKoBgFZVLJ+In+K9uMxAOBKeyCtFWR2tWcLUpd\n\tymzLo/7KDV25e++kWaPpk5gRT6hHTnj0I0zibuVKcwmfOhpxbaHjuXKXHe6ZInOH6URjXk7YPorQs\n\t90Udk7G5/ALoZ4k0nqmy1+XWG/5M2gjpURmnhjPLEqHwXN1Mhu3DyH5Jn9QCDm+656bhLIdZK7wfR\n\tpC0+QEj7aNgVVy8viggMoLh6ylnDB63SVCwPLQrTfadfsymCRBWefYhj8CZIqluFsC7sWM3IY7jnQ\n\t8bRzXPhukllZx5lWmLYQ==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=RWD0MM91fkIwsUk/gzGmwQRcLo55lmCI+ZjQlybQQ1c=;\n\tb=PgSvEjkzf22SnlR9wV8L5PrWbJxrm7agwa2TP7XBhMyOM2MYF9fZscowPz0/oDnRiN\n\tgSAIzJI+wbFt0nAmbR6c9KRaVcJfmQoS9fisqNisM+1DYQWsNvnOTj+Ni2GUwX4DABuW\n\tusdCRuZKVarKxO6vBoW9BP9MppPXGlcGKFmIaZ6+4Uh9vt5e/f0DPg1ZWroxqTdczAkH\n\tpGCBj2/ZvzPLZFoSc8jz37KanykYPXAd0+6WPMKa+9wJvyZzQhXjjKbVyS7/6FmHoUyv\n\to/KeBf0svaakhE+gbRzFwY3OauRpKb6QyAZ4iG6SWzu9zPjVJTmly3IINkJ+duNUBKag\n\tZ7sA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=RWD0MM91fkIwsUk/gzGmwQRcLo55lmCI+ZjQlybQQ1c=;\n\tb=Wjl+kBhhjExID83Fla3SRtuUtgl6wljg/HcOXXKcgrhu1BCgogzf/Y8dzTjy9Gi5ti\n\tU1wi2oxsdt1k4Wl8/vUM9qPO8i8lRqvQ03hWDFpL7AD7G79T4/CBLuvdYbucrld3OmKZ\n\tOWAEHoOx2PNGvYI/+MImiobQzVTuCWVZ2hDkBw78Jy797Jkf4oaNCoRGCzN88ieguNKE\n\t6wiVATjkK0b1EMpR0B9El4N6nS7G7SmIDGiwBd8guG+HBSlUJibAsECBYxNLBmihPtnL\n\td7qgNrFZ9G3wSu6Gld1aqJ5hS//R57KNgEIw+ebTUAEf2fli2v7ifXcdrXzm1i7SQg58\n\tiCsQ==",
        "X-Gm-Message-State": "AFeK/H3ENifGc0zsVdf1ibVDDUq4CZu/oox0LKHIW5TEPJeNO/f2sF+F3o1QbHE6gKPRrA==",
        "X-Received": "by 10.98.92.1 with SMTP id q1mr32341753pfb.209.1490010963076;\n\tMon, 20 Mar 2017 04:56:03 -0700 (PDT)",
        "From": "Yousong Zhou <yszhou4tech@gmail.com>",
        "To": "jo@mein.io",
        "Date": "Mon, 20 Mar 2017 19:55:50 +0800",
        "Message-Id": "<1490010953-7305-2-git-send-email-yszhou4tech@gmail.com>",
        "X-Mailer": "git-send-email 2.6.4",
        "In-Reply-To": "<1490010953-7305-1-git-send-email-yszhou4tech@gmail.com>",
        "References": "<1490010953-7305-1-git-send-email-yszhou4tech@gmail.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170320_045626_103770_90B0912E ",
        "X-CRM114-Status": "UNSURE (   8.12  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-2.0 (--)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c00:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (yszhou4tech[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain",
        "Subject": "[LEDE-DEV] [PATCH v2 1/4] build: cleanup tmp/ dir of target rootfs",
        "X-BeenThere": "lede-dev@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "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": "Yousong Zhou <yszhou4tech@gmail.com>, lede-dev@lists.infradead.org,\n\tnbd@nbd.name",
        "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: Yousong Zhou <yszhou4tech@gmail.com>\n---\n include/rootfs.mk | 1 +\n package/Makefile  | 2 +-\n 2 files changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/include/rootfs.mk b/include/rootfs.mk\nindex c014b1d..74785cb 100644\n--- a/include/rootfs.mk\n+++ b/include/rootfs.mk\n@@ -80,6 +80,7 @@ define prepare_rootfs\n \t@-find $(1) -name .svn  | $(XARGS) rm -rf\n \t@-find $(1) -name .git  | $(XARGS) rm -rf\n \t@-find $(1) -name '.#*' | $(XARGS) rm -f\n+\trm -rf $(1)/tmp/*\n \trm -f $(1)/usr/lib/opkg/lists/*\n \trm -f $(1)/usr/lib/opkg/info/*.postinst*\n \trm -f $(1)/usr/lib/opkg/info/*.prerm*\ndiff --git a/package/Makefile b/package/Makefile\nindex ac8faec..4fdf415 100644\n--- a/package/Makefile\n+++ b/package/Makefile\n@@ -63,7 +63,7 @@ endif\n $(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(if $(CONFIG_TARGET_PER_DEVICE_ROOTFS),$(curdir)/merge-index)\n \t- find $(STAGING_DIR_ROOT) -type d | $(XARGS) chmod 0755\n \trm -rf $(TARGET_DIR) $(TARGET_DIR_ORIG)\n-\t[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp\n+\tmkdir -p $(TARGET_DIR)/tmp\n \t$(call opkg,$(TARGET_DIR)) install \\\n \t\t$(call opkg_package_files,$(shell cat $(PACKAGE_INSTALL_FILES) 2>/dev/null))\n \t@for file in $(PACKAGE_INSTALL_FILES); do \\\n",
    "prefixes": [
        "LEDE-DEV",
        "v2",
        "1/4"
    ]
}