get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112296,
    "url": "http://patches.dpdk.org/api/patches/112296/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220603111625.562070-2-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20220603111625.562070-2-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220603111625.562070-2-bruce.richardson@intel.com",
    "date": "2022-06-03T11:16:22",
    "name": "[v4,1/4] cocci: add script for zero-length arrays in structs",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "53945f7774758bc796f90f8470ddd008ee64af81",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220603111625.562070-2-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 23318,
            "url": "http://patches.dpdk.org/api/series/23318/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23318",
            "date": "2022-06-03T11:16:22",
            "name": "clean up zero-length arrays",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/23318/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/112296/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/112296/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 F1E4EA055C;\n\tFri,  3 Jun 2022 13:16:34 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C19C14069D;\n\tFri,  3 Jun 2022 13:16:34 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 10B3D4069D\n for <dev@dpdk.org>; Fri,  3 Jun 2022 13:16:33 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jun 2022 04:16:33 -0700",
            "from silpixa00401385.ir.intel.com (HELO\n silpixa00401385.ger.corp.intel.com) ([10.237.222.171])\n by orsmga008.jf.intel.com with ESMTP; 03 Jun 2022 04:16:31 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1654254994; x=1685790994;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=NQZdqjgh0cgGEjC1upK0m2bYgLHTgQbGDXJAvlFJK4c=;\n b=hDVeEuC6jkRjyPfEm7tVBqLZkuzdW7+ZUEV0CCQZ8TM+cvLKXPd3Pydy\n ENR7wBlMc38CavA6txxJyKdJx2GwE8E2/IA68AuKaAEWdGqGNcWT6x/3V\n 8aUR1ip+KznpcQkYiiDdSenLNxO2/jLfSVNuxm+tz7460XQVBXeFU7/uN\n usyf1HbMywflvlNaE2jIunZieUtpQAtuhOx3EphDKxXDOkYnhOOZkuT9j\n Jl4RROH560DYdBCIs87QYmZBL0n9MlSeogPDBk8Zivnnnke+r5xmzD7jU\n C9BQencguS+c+07hngdI4jRCVgzc0/wIyL7J8I2gyDiJxlgZwnGQjQCat Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10366\"; a=\"275031087\"",
            "E=Sophos;i=\"5.91,274,1647327600\"; d=\"scan'208\";a=\"275031087\"",
            "E=Sophos;i=\"5.91,274,1647327600\"; d=\"scan'208\";a=\"607356401\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, Bruce Richardson <bruce.richardson@intel.com>,\n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Stephen Hemminger <stephen@networkplumber.org>,\n Hemant Agrawal <hemant.agrawal@nxp.com>",
        "Subject": "[PATCH v4 1/4] cocci: add script for zero-length arrays in structs",
        "Date": "Fri,  3 Jun 2022 12:16:22 +0100",
        "Message-Id": "<20220603111625.562070-2-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220603111625.562070-1-bruce.richardson@intel.com>",
        "References": "<20220602150834.643745-1-bruce.richardson@intel.com>\n <20220603111625.562070-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "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": "Add script to replace [0] with [] when used at the end of a struct.\nThe script also includes an additional struct member to match against so\nas to avoid issues with arrays with only a single zero-length element.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Stephen Hemminger <stephen@networkplumber.org>\nAcked-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n devtools/cocci/zero_length_array.cocci | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)\n create mode 100644 devtools/cocci/zero_length_array.cocci",
    "diff": "diff --git a/devtools/cocci/zero_length_array.cocci b/devtools/cocci/zero_length_array.cocci\nnew file mode 100644\nindex 0000000000..de8783bc7a\n--- /dev/null\n+++ b/devtools/cocci/zero_length_array.cocci\n@@ -0,0 +1,21 @@\n+// Replace zero-length array members with []\n+@@\n+identifier st, member, arr;\n+type T1, T2;\n+@@\n+struct st {\n+\t...\n+\tT1 member;\n+-\tT2 arr[0];\n++\tT2 arr[];\n+};\n+@@\n+identifier st, member, arr, id;\n+type T1, T2;\n+@@\n+struct st {\n+\t...\n+\tT1 member;\n+-\tT2 arr[0];\n++\tT2 arr[];\n+} id;\n",
    "prefixes": [
        "v4",
        "1/4"
    ]
}