get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 125728,
    "url": "http://patches.dpdk.org/api/patches/125728/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1680539424-20255-3-git-send-email-roretzla@linux.microsoft.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": "<1680539424-20255-3-git-send-email-roretzla@linux.microsoft.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1680539424-20255-3-git-send-email-roretzla@linux.microsoft.com",
    "date": "2023-04-03T16:30:24",
    "name": "[2/2] telemetry: use portable syntax to initialize array",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8d20289559c7516f415a7e7063614b2d519ff0cb",
    "submitter": {
        "id": 2077,
        "url": "http://patches.dpdk.org/api/people/2077/?format=api",
        "name": "Tyler Retzlaff",
        "email": "roretzla@linux.microsoft.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1680539424-20255-3-git-send-email-roretzla@linux.microsoft.com/mbox/",
    "series": [
        {
            "id": 27608,
            "url": "http://patches.dpdk.org/api/series/27608/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27608",
            "date": "2023-04-03T16:30:22",
            "name": "improve code portability",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27608/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/125728/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/125728/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 F344C428C0;\n\tMon,  3 Apr 2023 18:30:39 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 17DEE42B71;\n\tMon,  3 Apr 2023 18:30:30 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 7495440ED7\n for <dev@dpdk.org>; Mon,  3 Apr 2023 18:30:26 +0200 (CEST)",
            "by linux.microsoft.com (Postfix, from userid 1086)\n id 925B5210CBEC; Mon,  3 Apr 2023 09:30:25 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 925B5210CBEC",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1680539425;\n bh=J/w0juR/Qh7aR/O/9S5k+flJ8crTbWVTzb74CNRWMsM=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=SZHW0yPprAR0VfvL3FWslUKvWgQ4CRMEvpu+r+LCwc728g/anqga92r7V9hFrLk/0\n 6I/gcHo5c9pvJHaSHIbjaWZJBLii10l7hQVcPpS3alduxU2TzUz+jtBBCyF55SZA2h\n G3/dQ/15YvN2QmrKXNk8g48fttxeJkvv2PaECR0I=",
        "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "To": "dev@dpdk.org",
        "Cc": "ciara.power@intel.com, bruce.richardson@intel.com,\n david.marchand@redhat.com, thomas@monjalon.net,\n Tyler Retzlaff <roretzla@linux.microsoft.com>",
        "Subject": "[PATCH 2/2] telemetry: use portable syntax to initialize array",
        "Date": "Mon,  3 Apr 2023 09:30:24 -0700",
        "Message-Id": "<1680539424-20255-3-git-send-email-roretzla@linux.microsoft.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1680539424-20255-1-git-send-email-roretzla@linux.microsoft.com>",
        "References": "<1680539424-20255-1-git-send-email-roretzla@linux.microsoft.com>",
        "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": "Use of ranges in designated initialization are a non-standard gcc\nextension. Manually expand the ranges used in designated initialization\nto eliminate the use of non-standard features.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/telemetry/telemetry_data.c | 20 ++++++++++++++------\n 1 file changed, 14 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/lib/telemetry/telemetry_data.c b/lib/telemetry/telemetry_data.c\nindex 2bac2de..87e5f18 100644\n--- a/lib/telemetry/telemetry_data.c\n+++ b/lib/telemetry/telemetry_data.c\n@@ -152,12 +152,20 @@\n static bool\n valid_name(const char *name)\n {\n-\tchar allowed[128] = {\n-\t\t\t['0' ... '9'] = 1,\n-\t\t\t['A' ... 'Z'] = 1,\n-\t\t\t['a' ... 'z'] = 1,\n-\t\t\t['_'] = 1,\n-\t\t\t['/'] = 1,\n+\tstatic const char allowed[128] = {\n+\t\t['0'] = 1, ['1'] = 1, ['2'] = 1, ['3'] = 1, ['4'] = 1,\n+\t\t['5'] = 1, ['6'] = 1, ['7'] = 1, ['8'] = 1, ['9'] = 1,\n+\t\t['A'] = 1, ['B'] = 1, ['C'] = 1, ['D'] = 1, ['E'] = 1,\n+\t\t['F'] = 1, ['G'] = 1, ['H'] = 1, ['I'] = 1, ['J'] = 1,\n+\t\t['K'] = 1, ['L'] = 1, ['M'] = 1, ['N'] = 1, ['O'] = 1,\n+\t\t['P'] = 1, ['Q'] = 1, ['R'] = 1, ['S'] = 1, ['T'] = 1,\n+\t\t['U'] = 1, ['V'] = 1, ['W'] = 1, ['X'] = 1, ['Y'] = 1,\n+\t\t['Z'] = 1, ['a'] = 1, ['b'] = 1, ['c'] = 1, ['d'] = 1,\n+\t\t['e'] = 1, ['f'] = 1, ['g'] = 1, ['h'] = 1, ['i'] = 1,\n+\t\t['j'] = 1, ['k'] = 1, ['l'] = 1, ['m'] = 1, ['n'] = 1,\n+\t\t['o'] = 1, ['p'] = 1, ['q'] = 1, ['r'] = 1, ['s'] = 1,\n+\t\t['t'] = 1, ['u'] = 1, ['v'] = 1, ['w'] = 1, ['x'] = 1,\n+\t\t['y'] = 1, ['z'] = 1, ['_'] = 1, ['/'] = 1,\n \t};\n \twhile (*name != '\\0') {\n \t\tif ((size_t)*name >= RTE_DIM(allowed) || allowed[(int)*name] == 0)\n",
    "prefixes": [
        "2/2"
    ]
}