get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 771690,
    "url": "http://patchwork.ozlabs.org/api/patches/771690/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/1496736809-701-1-git-send-email-lizhijian@cn.fujitsu.com/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/projects/22/?format=api",
        "name": "HostAP Development",
        "link_name": "hostap",
        "list_id": "hostap.lists.infradead.org",
        "list_email": "hostap@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1496736809-701-1-git-send-email-lizhijian@cn.fujitsu.com>",
    "list_archive_url": null,
    "date": "2017-06-06T08:13:29",
    "name": "hwsim: enable dbus test",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "be07eb99f5813c83d03f5df1ca34c755b9621e3f",
    "submitter": {
        "id": 66110,
        "url": "http://patchwork.ozlabs.org/api/people/66110/?format=api",
        "name": "Li Zhijian",
        "email": "lizhijian@cn.fujitsu.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/1496736809-701-1-git-send-email-lizhijian@cn.fujitsu.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/771690/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/771690/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<hostap-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 3whl0K3WCsz9ryT\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  6 Jun 2017 18:17:05 +1000 (AEST)",
            "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 1dI9fI-00079L-Tt; Tue, 06 Jun 2017 08:16:36 +0000",
            "from [59.151.112.132] (helo=heian.cn.fujitsu.com)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dI9eu-000781-D7\n\tfor hostap@lists.infradead.org; Tue, 06 Jun 2017 08:16:14 +0000",
            "from unknown (HELO cn.fujitsu.com) ([10.167.33.5])\n\tby heian.cn.fujitsu.com with ESMTP; 06 Jun 2017 16:15:37 +0800",
            "from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85])\n\tby cn.fujitsu.com (Postfix) with ESMTP id BB22647C7C69\n\tfor <hostap@lists.infradead.org>;\n\tTue,  6 Jun 2017 16:15:35 +0800 (CST)",
            "from G08FNSTD140138.localdomain (10.167.226.45) by\n\tG08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP\n\tServer (TLS) id 14.3.319.2; Tue, 6 Jun 2017 16:15:34 +0800"
        ],
        "Authentication-Results": "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"Y72Y+EA+\"; \n\tdkim-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:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To\n\t:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=KkHemL8pCzClzzhd9E2fbKiEQgM2/6rfYM4L+3hcPXk=;\n\tb=Y72Y+EA+/8/ICS\n\tZY6hHysKaBo4oj5rIhvb6EnNTiqMJcmEb0R2Rw7r8hA+fHMdK2vliZ+8MkQnmZq78D6J+j8MqCVeW\n\tZCYgJQOqI5I12UUGz2tqwxZPbClRUwtMEVIa0Bd5FgobPcoSPQCgSDskCmC71ivwpVpIYFfKeJ0Ce\n\tb5suYmyRzaMSJwZoW0TBf6y+p6w6kWihiM/BXp56u0AFPOL+WyzNx0qEuuj3mFxX579qf7IEs//ma\n\tdjy9xWWx+vNCAopOvxcWp6wYHQCb3tsz1qDR5/ngkh/LCsuOFmx4+l6yU1N9ruOVI4PUzfAm90lOI\n\t1sXLfH9hC2Ckc2qUWeVg==;",
        "X-IronPort-AV": "E=Sophos;i=\"5.22,518,1449504000\"; d=\"scan'208\";a=\"19708354\"",
        "From": "Li Zhijian <lizhijian@cn.fujitsu.com>",
        "To": "<hostap@lists.infradead.org>",
        "Subject": "[PATCH] hwsim: enable dbus test",
        "Date": "Tue, 6 Jun 2017 16:13:29 +0800",
        "Message-ID": "<1496736809-701-1-git-send-email-lizhijian@cn.fujitsu.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.167.226.45]",
        "X-yoursite-MailScanner-ID": "BB22647C7C69.AFB6E",
        "X-yoursite-MailScanner": "Found to be clean",
        "X-yoursite-MailScanner-From": "lizhijian@cn.fujitsu.com",
        "X-Spam-Status": "No",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170606_011612_628900_C10A6A4D ",
        "X-CRM114-Status": "UNSURE (   3.67  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-1.1 (-)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.1 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.8 RDNS_NONE Delivered to internal network by a host with no rDNS",
        "X-BeenThere": "hostap@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<hostap.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/hostap>,\n\t<mailto:hostap-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/hostap/>",
        "List-Post": "<mailto:hostap@lists.infradead.org>",
        "List-Help": "<mailto:hostap-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/hostap>,\n\t<mailto:hostap-request@lists.infradead.org?subject=subscribe>",
        "Cc": "Xiaodong Jia <jiaxd-fnst@cn.fujitsu.com>,\n\tLi Zhijian <lizhijian@cn.fujitsu.com>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"Hostap\" <hostap-bounces@lists.infradead.org>",
        "Errors-To": "hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "not all distro contains /var/run/dbus/pid, debian for example:\ndbus-daemon start with nopidfile\nroot@debian9:/home/lizhijian/chroot_clean/tmp/build-hwsim/hostap/tests/hwsim# ps aux |grep dbus\nmessage+   598  0.0  0.1  46068  4836 ?        Ss   15:46   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation\nDebian-+   656  0.0  0.0  45220  3924 ?        Ss   15:46   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation\n\nSigned-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>\nSigned-off-by: Xiaodong Jia <jiaxd-fnst@cn.fujitsu.com>\n---\n tests/hwsim/start.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh\nindex cee9239..dce65ba 100755\n--- a/tests/hwsim/start.sh\n+++ b/tests/hwsim/start.sh\n@@ -107,7 +107,7 @@ sudo ifconfig hwsim0 up\n sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dtN -L $LOGDIR/hwsim0 &\n for i in 0 1 2; do\n     DBUSARG=\"\"\n-    if [ $i = \"0\" -a -r /var/run/dbus/pid -a -r /var/run/dbus/hwsim-test ]; then\n+    if [ $i = \"0\" ] && ([ -r /var/run/dbus/pid ] || [ -r /var/run/dbus/system_bus_socket ]); then\n \tif $WPAS | grep -q -- -u; then\n \t    DBUSARG=\"-u\"\n \tfi\n",
    "prefixes": []
}