get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73164,
    "url": "http://patches.dpdk.org/api/patches/73164/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200706080022.3887-2-david.marchand@redhat.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": "<20200706080022.3887-2-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200706080022.3887-2-david.marchand@redhat.com",
    "date": "2020-07-06T08:00:22",
    "name": "[2/2] devtools: fix forbidden token",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "37bc98faced1b1154e0f724016750ce4b8322af0",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200706080022.3887-2-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 10802,
            "url": "http://patches.dpdk.org/api/series/10802/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10802",
            "date": "2020-07-06T08:00:21",
            "name": "[1/2] devtools: fix filename in forbidden token check",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10802/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/73164/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/73164/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 C671AA00C5;\n\tMon,  6 Jul 2020 10:01:02 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C78721D699;\n\tMon,  6 Jul 2020 10:00:51 +0200 (CEST)",
            "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id C44B91D5B0\n for <dev@dpdk.org>; Mon,  6 Jul 2020 10:00:50 +0200 (CEST)",
            "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-495-VJzYY9oMNk6eqrZj8JP8Fw-1; Mon, 06 Jul 2020 04:00:48 -0400",
            "from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com\n [10.5.11.11])\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 4B0B5107ACF8;\n Mon,  6 Jul 2020 08:00:47 +0000 (UTC)",
            "from dmarchan.remote.csb (unknown [10.40.195.188])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 08E54275E36;\n Mon,  6 Jul 2020 08:00:45 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1594022450;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=H4EBp0tR/nCw11Y/Pt0sg7hY8ILj60LXCIJfdrCW+pE=;\n b=GAStuOVqeuSaoQ4uF4lRoAZVdCdGyqavjdc4UpssxGdou0tWJooaTLw9bldhgfA+WPfqXH\n EAdyAAdMMdmfjKtjydS0ALcW48yovpXSxV53Y61PhWMUQMJnxtzuEd69c5zYcOXArfr+pY\n MKW2Y2LsxvyIP6J7zq95oKN6FBiGI44=",
        "X-MC-Unique": "VJzYY9oMNk6eqrZj8JP8Fw-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net",
        "Date": "Mon,  6 Jul 2020 10:00:22 +0200",
        "Message-Id": "<20200706080022.3887-2-david.marchand@redhat.com>",
        "In-Reply-To": "<20200706080022.3887-1-david.marchand@redhat.com>",
        "References": "<20200706080022.3887-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=US-ASCII",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 2/2] devtools: fix forbidden token",
        "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": "An expression with a space is split by the awk script resulting in\nfalse positive for any patch matching any of the two part of the\nexpression.\nFix this by using [[:space:]].\n\nFixes: 43e73483a4b8 (\"devtools: forbid variable declaration inside for\")\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n devtools/checkpatches.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh\nindex 27ab1252b7..58021aa5dd 100755\n--- a/devtools/checkpatches.sh\n+++ b/devtools/checkpatches.sh\n@@ -71,7 +71,7 @@ check_forbidden_additions() { # <patch>\n \n \t# forbid variable declaration inside \"for\" loop\n \tawk -v FOLDERS='.' \\\n-\t\t-v EXPRESSIONS='for *\\\\((char|u?int|unsigned|s?size_t)' \\\n+\t\t-v EXPRESSIONS='for[[:space:]]*\\\\((char|u?int|unsigned|s?size_t)' \\\n \t\t-v RET_ON_FAIL=1 \\\n \t\t-v MESSAGE='Declaring a variable inside for()' \\\n \t\t-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \\\n",
    "prefixes": [
        "2/2"
    ]
}