get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 811054,
    "url": "http://patchwork.ozlabs.org/api/patches/811054/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1504794403-45690-4-git-send-email-arkadis@mellanox.com/",
    "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": "<1504794403-45690-4-git-send-email-arkadis@mellanox.com>",
    "list_archive_url": null,
    "date": "2017-09-07T14:26:42",
    "name": "[iproute2,3/4] devlink: Update devlink UAPI file",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "2439f10e63b3e75541148df462e0f591c1b14273",
    "submitter": {
        "id": 71504,
        "url": "http://patchwork.ozlabs.org/api/people/71504/?format=api",
        "name": "Arkadi Sharshevsky",
        "email": "arkadis@mellanox.com"
    },
    "delegate": {
        "id": 389,
        "url": "http://patchwork.ozlabs.org/api/users/389/?format=api",
        "username": "shemminger",
        "first_name": "stephen",
        "last_name": "hemminger",
        "email": "shemminger@vyatta.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1504794403-45690-4-git-send-email-arkadis@mellanox.com/mbox/",
    "series": [
        {
            "id": 2006,
            "url": "http://patchwork.ozlabs.org/api/series/2006/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=2006",
            "date": "2017-09-07T14:26:41",
            "name": "Add support for dpipe's global header formatting",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2006/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/811054/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/811054/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 3xp2lX16r9z9sPm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  8 Sep 2017 00:24:40 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1755443AbdIGOYe (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 7 Sep 2017 10:24:34 -0400",
            "from mail-il-dmz.mellanox.com ([193.47.165.129]:40356 \"EHLO\n\tmellanox.co.il\" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org\n\twith ESMTP id S1755305AbdIGOYH (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 7 Sep 2017 10:24:07 -0400",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tarkadis@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 7 Sep 2017 17:24:02 +0300",
            "from dev-r-vrt-156.mtr.labs.mlnx (dev-r-vrt-156.mtr.labs.mlnx\n\t[10.212.156.1])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v87EO1oD010674;\n\tThu, 7 Sep 2017 17:24:02 +0300"
        ],
        "From": "Arkadi Sharshevsky <arkadis@mellanox.com>",
        "To": "netdev@vger.kernel.org",
        "Cc": "davem@davemloft.net, stephen@networkplumber.org, jiri@resnulli.us,\n\tmlxsw@mellanox.com, andrew@lunn.ch,\n\tArkadi Sharshevsky <arkadis@mellanox.com>, Jiri Pirko <jiri@mellanox.com>",
        "Subject": "[PATCH iproute2 3/4] devlink: Update devlink UAPI file",
        "Date": "Thu,  7 Sep 2017 17:26:42 +0300",
        "Message-Id": "<1504794403-45690-4-git-send-email-arkadis@mellanox.com>",
        "X-Mailer": "git-send-email 2.4.11",
        "In-Reply-To": "<1504794403-45690-1-git-send-email-arkadis@mellanox.com>",
        "References": "<1504794403-45690-1-git-send-email-arkadis@mellanox.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Update devlink UAPI file.\n\nSigned-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\n include/linux/devlink.h | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)",
    "diff": "diff --git a/include/linux/devlink.h b/include/linux/devlink.h\nindex 7644005..a62695e 100644\n--- a/include/linux/devlink.h\n+++ b/include/linux/devlink.h\n@@ -226,4 +226,22 @@ enum devlink_dpipe_action_type {\n \tDEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY,\n };\n \n+enum devlink_dpipe_field_ethernet_id {\n+\tDEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC,\n+};\n+\n+enum devlink_dpipe_field_ipv4_id {\n+\tDEVLINK_DPIPE_FIELD_IPV4_DST_IP,\n+};\n+\n+enum devlink_dpipe_field_ipv6_id {\n+\tDEVLINK_DPIPE_FIELD_IPV6_DST_IP,\n+};\n+\n+enum devlink_dpipe_header_id {\n+\tDEVLINK_DPIPE_HEADER_ETHERNET,\n+\tDEVLINK_DPIPE_HEADER_IPV4,\n+\tDEVLINK_DPIPE_HEADER_IPV6,\n+};\n+\n #endif /* _LINUX_DEVLINK_H_ */\n",
    "prefixes": [
        "iproute2",
        "3/4"
    ]
}