get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131620,
    "url": "https://patches.dpdk.org/api/patches/131620/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230919102012.419201-2-rjarry@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": "<20230919102012.419201-2-rjarry@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230919102012.419201-2-rjarry@redhat.com",
    "date": "2023-09-19T10:20:13",
    "name": "usertools/pmdinfo: fix usage typos",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "2b1829680c3dbc35581a295f86aee108273fb344",
    "submitter": {
        "id": 2850,
        "url": "https://patches.dpdk.org/api/people/2850/?format=api",
        "name": "Robin Jarry",
        "email": "rjarry@redhat.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230919102012.419201-2-rjarry@redhat.com/mbox/",
    "series": [
        {
            "id": 29549,
            "url": "https://patches.dpdk.org/api/series/29549/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29549",
            "date": "2023-09-19T10:20:13",
            "name": "usertools/pmdinfo: fix usage typos",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/29549/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/131620/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/131620/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 29E7F42601;\n\tTue, 19 Sep 2023 12:20:29 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AE72B40A6D;\n\tTue, 19 Sep 2023 12:20:28 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by mails.dpdk.org (Postfix) with ESMTP id 40B27406B8\n for <dev@dpdk.org>; Tue, 19 Sep 2023 12:20:27 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-80-kAWrgHEQM6GClAAYfBcsow-1; Tue, 19 Sep 2023 06:20:25 -0400",
            "from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com\n [10.11.54.4])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BADEB3801EEC;\n Tue, 19 Sep 2023 10:20:24 +0000 (UTC)",
            "from ringo.redhat.com (unknown [10.39.208.33])\n by smtp.corp.redhat.com (Postfix) with ESMTP id E96A320268CB;\n Tue, 19 Sep 2023 10:20:23 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1695118826;\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=wgfeuH3N54lk8JaNfnExneTsCDwhxAwUjwdF4ycThfE=;\n b=CzIf4LLbuDaHFXtdx3uTOn69MpHm0ozANzX7dbNGvjxHrEUuByEOO10BQ7axAafMbkibRF\n hfmi8bqwkF+b0lIXXmsgOyc9RsLT+SdKTTgUpkD6SleD0W5sDLGsN0YeO+MkeeLvSZLcEV\n 39R9q4KobptI7ns+2NrBsrLQAGBbw3E=",
        "X-MC-Unique": "kAWrgHEQM6GClAAYfBcsow-1",
        "From": "Robin Jarry <rjarry@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "Robin Jarry <rjarry@redhat.com>,\n\tstable@dpdk.org",
        "Subject": "[PATCH] usertools/pmdinfo: fix usage typos",
        "Date": "Tue, 19 Sep 2023 12:20:13 +0200",
        "Message-ID": "<20230919102012.419201-2-rjarry@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.4",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "The docs and script usages are not consistent.\n\nThere is no .devices, .vendor_id nor .device_id fields. Fix usage to the\ncorrect field names.\n\nSome drivers do not expose any pci_ids, show how to use the []? jq\noperator to avoid spurious errors.\n\nFixes: 0ce3cf4afd04 (\"usertools/pmdinfo: rewrite simpler script\")\nCc: stable@dpdk.org\n\nSigned-off-by: Robin Jarry <rjarry@redhat.com>\n---\n doc/guides/tools/pmdinfo.rst | 2 +-\n usertools/dpdk-pmdinfo.py    | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/tools/pmdinfo.rst b/doc/guides/tools/pmdinfo.rst\nindex a9217de4eef2..fdb90301715e 100644\n--- a/doc/guides/tools/pmdinfo.rst\n+++ b/doc/guides/tools/pmdinfo.rst\n@@ -82,5 +82,5 @@ Get only the required kernel modules for a given device:\n .. code-block:: console\n \n    $ dpdk-pmdinfo.py /usr/bin/dpdk-testpmd | \\\n-       jq '.[] | select(.pci_ids[] | .vendor == \"15b3\" and .device == \"1013\").kmod'\n+       jq '.[] | select(.pci_ids[]? | .vendor == \"15b3\" and .device == \"1013\").kmod'\n    \"* ib_uverbs & mlx5_core & mlx5_ib\"\ndiff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py\nindex 67d023a04711..2c728de7b8be 100755\n--- a/usertools/dpdk-pmdinfo.py\n+++ b/usertools/dpdk-pmdinfo.py\n@@ -23,7 +23,7 @@\n Get only the required kernel modules for a given device:\n \n   %(prog)s dpdk-testpmd | \\\n-  jq '.[] | select(.devices[] | .vendor_id == \"15b3\" and .device_id == \"1013\").kmod'\n+  jq '.[] | select(.pci_ids[]? | .vendor == \"15b3\" and .device == \"1013\").kmod'\n \"\"\"\n \n import argparse\n",
    "prefixes": []
}