get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 817328,
    "url": "http://patchwork.ozlabs.org/api/patches/817328/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170922061008.14723-2-fw@strlen.de/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170922061008.14723-2-fw@strlen.de>",
    "list_archive_url": null,
    "date": "2017-09-22T06:10:03",
    "name": "[net-next,v2,1/6] selftests: rtnetlink.sh: add rudimentary vrf test",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "004c716781db2a4e3307d1fc6514c874b245c4f3",
    "submitter": {
        "id": 1025,
        "url": "http://patchwork.ozlabs.org/api/people/1025/?format=api",
        "name": "Florian Westphal",
        "email": "fw@strlen.de"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170922061008.14723-2-fw@strlen.de/mbox/",
    "series": [
        {
            "id": 4543,
            "url": "http://patchwork.ozlabs.org/api/series/4543/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=4543",
            "date": "2017-09-22T06:10:02",
            "name": "rtnetlink: preparation patches for further rtnl lock pushdown/removal",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/4543/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817328/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817328/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xz33n75XYz9sNc\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 16:09:57 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751872AbdIVGJz (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 22 Sep 2017 02:09:55 -0400",
            "from Chamillionaire.breakpoint.cc ([146.0.238.67]:41576 \"EHLO\n\tChamillionaire.breakpoint.cc\" rhost-flags-OK-OK-OK-OK)\n\tby vger.kernel.org with ESMTP id S1751795AbdIVGJy (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 22 Sep 2017 02:09:54 -0400",
            "from fw by Chamillionaire.breakpoint.cc with local (Exim 4.84_2)\n\t(envelope-from <fw@breakpoint.cc>)\n\tid 1dvH6f-0003ZG-2I; Fri, 22 Sep 2017 08:06:33 +0200"
        ],
        "From": "Florian Westphal <fw@strlen.de>",
        "To": "<netdev@vger.kernel.org>",
        "Cc": "Florian Westphal <fw@strlen.de>, David Ahern <dsahern@gmail.com>",
        "Subject": "[PATCH net-next v2 1/6] selftests: rtnetlink.sh: add rudimentary\n\tvrf test",
        "Date": "Fri, 22 Sep 2017 08:10:03 +0200",
        "Message-Id": "<20170922061008.14723-2-fw@strlen.de>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170922061008.14723-1-fw@strlen.de>",
        "References": "<20170922061008.14723-1-fw@strlen.de>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Cc: David Ahern <dsahern@gmail.com>\nSigned-off-by: Florian Westphal <fw@strlen.de>\n---\n tools/testing/selftests/net/rtnetlink.sh | 42 ++++++++++++++++++++++++++++++++\n 1 file changed, 42 insertions(+)",
    "diff": "diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh\nindex 4b48de565cae..6ee2bbaebcd4 100755\n--- a/tools/testing/selftests/net/rtnetlink.sh\n+++ b/tools/testing/selftests/net/rtnetlink.sh\n@@ -291,6 +291,47 @@ kci_test_ifalias()\n \techo \"PASS: set ifalias $namewant for $devdummy\"\n }\n \n+kci_test_vrf()\n+{\n+\tvrfname=\"test-vrf\"\n+\tret=0\n+\n+\tip link show type vrf 2>/dev/null\n+\tif [ $? -ne 0 ]; then\n+\t\techo \"SKIP: vrf: iproute2 too old\"\n+\t\treturn 0\n+\tfi\n+\n+\tip link add \"$vrfname\" type vrf table 10\n+\tcheck_err $?\n+\tif [ $ret -ne 0 ];then\n+\t\techo \"FAIL: can't add vrf interface, skipping test\"\n+\t\treturn 0\n+\tfi\n+\n+\tip -br link show type vrf | grep -q \"$vrfname\"\n+\tcheck_err $?\n+\tif [ $ret -ne 0 ];then\n+\t\techo \"FAIL: created vrf device not found\"\n+\t\treturn 1\n+\tfi\n+\n+        ip link set dev \"$vrfname\" up\n+\tcheck_err $?\n+\n+\tip link set dev \"$devdummy\" master \"$vrfname\"\n+\tcheck_err $?\n+\tip link del dev \"$vrfname\"\n+\tcheck_err $?\n+\n+\tif [ $ret -ne 0 ];then\n+\t\techo \"FAIL: vrf\"\n+\t\treturn 1\n+\tfi\n+\n+\techo \"PASS: vrf\"\n+}\n+\n kci_test_rtnl()\n {\n \tkci_add_dummy\n@@ -306,6 +347,7 @@ kci_test_rtnl()\n \tkci_test_bridge\n \tkci_test_addrlabel\n \tkci_test_ifalias\n+\tkci_test_vrf\n \n \tkci_del_dummy\n }\n",
    "prefixes": [
        "net-next",
        "v2",
        "1/6"
    ]
}