get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66339,
    "url": "https://patches.dpdk.org/api/patches/66339/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200306120047.29392-1-ktraynor@redhat.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200306120047.29392-1-ktraynor@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200306120047.29392-1-ktraynor@redhat.com",
    "date": "2020-03-06T12:00:46",
    "name": "[1/2] net/hinic: fix snprintf length",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5ec8c01fdfa0060ca5d57adbe1c70decd915c582",
    "submitter": {
        "id": 598,
        "url": "https://patches.dpdk.org/api/people/598/?format=api",
        "name": "Kevin Traynor",
        "email": "ktraynor@redhat.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200306120047.29392-1-ktraynor@redhat.com/mbox/",
    "series": [
        {
            "id": 8812,
            "url": "https://patches.dpdk.org/api/series/8812/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8812",
            "date": "2020-03-06T12:00:46",
            "name": "[1/2] net/hinic: fix snprintf length",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/8812/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/66339/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/66339/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DABA5A056A;\n\tFri,  6 Mar 2020 13:01:09 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1AE282BA8;\n\tFri,  6 Mar 2020 13:01:09 +0100 (CET)",
            "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 05062FEB\n for <dev@dpdk.org>; Fri,  6 Mar 2020 13:01:07 +0100 (CET)",
            "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-432-rfmNKLB5NHGc2WNSgKue1Q-1; Fri, 06 Mar 2020 07:01:03 -0500",
            "from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com\n [10.5.11.22])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9CFDD107ACC7;\n Fri,  6 Mar 2020 12:01:02 +0000 (UTC)",
            "from rh.redhat.com (unknown [10.33.36.64])\n by smtp.corp.redhat.com (Postfix) with ESMTP id EFB0D1001B07;\n Fri,  6 Mar 2020 12:00:58 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1583496067;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=Z7ftV3nkQz3zPNKZ+QNqviAhfynMmFRCsC6eZUg346w=;\n b=e+2QyfOfIEFFeiyrvb+qYzuoy1J9WmqxBO5XqdoQ3vzD//2l90WD/ajIBc0WfawyGxLHFN\n vsYMpTxafdDzjs5WMdPHsyvm7w3JOPu4LVe3LplMSU8BFYMMB1buriOTq0NES7RwwkRqHL\n F3xFECMqQFfaPH+8QppaZ3VhQ1pNLE8=",
        "X-MC-Unique": "rfmNKLB5NHGc2WNSgKue1Q-1",
        "From": "Kevin Traynor <ktraynor@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "Kevin Traynor <ktraynor@redhat.com>, stable@dpdk.org,\n xuanziyang2@huawei.com, cloud.wangxiaoyun@huawei.com,\n zhouguoyang@huawei.com",
        "Date": "Fri,  6 Mar 2020 12:00:46 +0000",
        "Message-Id": "<20200306120047.29392-1-ktraynor@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.22",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=US-ASCII",
        "Content-Transfer-Encoding": "quoted-printable",
        "Subject": "[dpdk-dev] [PATCH 1/2] net/hinic: fix snprintf length",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Correct length and remove unecessary brackets.\n\nFixes: d9ce1917941c (\"net/hinic/base: add hardware operation\")\nCc: stable@dpdk.org\n\nSigned-off-by: Kevin Traynor <ktraynor@redhat.com>\n\n---\nCc: xuanziyang2@huawei.com\nCc: cloud.wangxiaoyun@huawei.com\nCc: zhouguoyang@huawei.com\n---\n drivers/net/hinic/base/hinic_pmd_hwdev.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/hinic/base/hinic_pmd_hwdev.c b/drivers/net/hinic/base/hinic_pmd_hwdev.c\nindex 8b16897ad..b6c821a2a 100644\n--- a/drivers/net/hinic/base/hinic_pmd_hwdev.c\n+++ b/drivers/net/hinic/base/hinic_pmd_hwdev.c\n@@ -1391,5 +1391,5 @@ static void print_cable_info(struct hinic_link_info *info)\n \n \tmemcpy(tmp_vendor, info->vendor_name, sizeof(info->vendor_name));\n-\tsnprintf(tmp_str, (sizeof(tmp_str) - 1),\n+\tsnprintf(tmp_str, sizeof(tmp_str),\n \t\t \"Vendor: %s, %s, %s, length: %um, max_speed: %uGbps\",\n \t\t tmp_vendor, info->sfp_type ? \"SFP\" : \"QSFP\", port_type,\n",
    "prefixes": [
        "1/2"
    ]
}