get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7951,
    "url": "http://patches.dpdk.org/api/patches/7951/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1445615606-3885-2-git-send-email-thomas.monjalon@6wind.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": "<1445615606-3885-2-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445615606-3885-2-git-send-email-thomas.monjalon@6wind.com",
    "date": "2015-10-23T15:53:25",
    "name": "[dpdk-dev,1/2] scripts: add checkpatch wrapper",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "10d1a77916dbaad2d3de0440b29b2bb4efbfb060",
    "submitter": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1445615606-3885-2-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/7951/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/7951/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 7FD635A17;\n\tFri, 23 Oct 2015 17:54:40 +0200 (CEST)",
            "from mail-wi0-f178.google.com (mail-wi0-f178.google.com\n\t[209.85.212.178]) by dpdk.org (Postfix) with ESMTP id 8DF6F5963\n\tfor <dev@dpdk.org>; Fri, 23 Oct 2015 17:54:38 +0200 (CEST)",
            "by wicfx6 with SMTP id fx6so37327265wic.1\n\tfor <dev@dpdk.org>; Fri, 23 Oct 2015 08:54:38 -0700 (PDT)",
            "from localhost.localdomain (136-92-190-109.dsl.ovh.fr.\n\t[109.190.92.136]) by smtp.gmail.com with ESMTPSA id\n\tcq8sm2187837wib.12.2015.10.23.08.54.37\n\tfor <dev@dpdk.org> (version=TLSv1/SSLv3 cipher=OTHER);\n\tFri, 23 Oct 2015 08:54:37 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=LRRhX5OlSNn1KyJm71AhQSEn6zR7L4OSlJWovRYsNU0=;\n\tb=Ys/ceZUUWS31xuRrSIlpApwBTyt5xnFClV3HS7P7NwFYsE5NLIDUt8WPYwz7ZdnFKu\n\tUvlzuH0IrNRPtx+tlHDMZIzT3uJV5UyGSNPwVg1e6ZfgnHZ42UZp6BvhfTgFjcBBh3nR\n\tx9owLUS8J+3VwjVUvwBk8rAAwdS2IwFY2sBYWV/fTMwYxbNZGKDJuExBbdpNe7I7bwWu\n\tFhqs33rmdZ58fCgy4XtBaQkxuo6FwCcFtEDGjqzJirPKQYjtqhl0+x2NtJp13Z9f7ccQ\n\txbR/KrApYd8igk2ocJUa6F0RsP/xnMkoPHapHrYKCcuJmzlKlES2xWAX0eiSE1CaKGKi\n\tzPwQ==",
        "X-Gm-Message-State": "ALoCoQlM2eQsz6VOpq4/k6lCn2vVy+InLO/9ovseR2E6laecEwPkfqZts7CoX+qM/g2JdpEbEz7k",
        "X-Received": "by 10.194.179.165 with SMTP id dh5mr6524321wjc.134.1445615678393;\n\tFri, 23 Oct 2015 08:54:38 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 23 Oct 2015 17:53:25 +0200",
        "Message-Id": "<1445615606-3885-2-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.5.2",
        "In-Reply-To": "<1445615606-3885-1-git-send-email-thomas.monjalon@6wind.com>",
        "References": "<1445615606-3885-1-git-send-email-thomas.monjalon@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH 1/2] scripts: add checkpatch wrapper",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This script can be used to call checkpatch.pl from Linux with some\ncustom DPDK options.\n\nThe path to the original Linux script must be set in an environment\nvariable. A script is added to load any configuration variables\nrequired by development tools from a file .develconfig, or\n~/.config/dpdk/devel.config or /etc/dpdk/devel.config.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n scripts/checkpatches.sh      | 30 ++++++++++++++++++++++++++++++\n scripts/load-devel-config.sh | 14 ++++++++++++++\n 2 files changed, 44 insertions(+)\n create mode 100755 scripts/checkpatches.sh\n create mode 100755 scripts/load-devel-config.sh",
    "diff": "diff --git a/scripts/checkpatches.sh b/scripts/checkpatches.sh\nnew file mode 100755\nindex 0000000..192b931\n--- /dev/null\n+++ b/scripts/checkpatches.sh\n@@ -0,0 +1,30 @@\n+#! /bin/sh\n+\n+# Load config options:\n+# - DPDK_CHECKPATCH_PATH\n+# - DPDK_CHECKPATCH_LINE_LENGTH\n+. scripts/load-devel-config.sh\n+if [ ! -x \"$DPDK_CHECKPATCH_PATH\" ] ; then\n+\techo 'Cannot execute DPDK_CHECKPATCH_PATH' >&2\n+\texit 1\n+fi\n+\n+length=${DPDK_CHECKPATCH_LINE_LENGTH:-80}\n+\n+# override default Linux options\n+options=\"$options --max-line-length=$length\"\n+options=\"$options --show-types\"\n+options=\"$options --ignore=LINUX_VERSION_CODE,FILE_PATH_CHANGES,\\\n+VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,PREFER_KERNEL_TYPES,\\\n+SPLIT_STRING,LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\\\n+NEW_TYPEDEFS,COMPLEX_MACRO,COMPARISON_TO_NULL\"\n+\n+status=0\n+for p in \"$@\" ; do\n+\tprintf -- \"\\n### $p\\n\\n\"\n+\treport=$($DPDK_CHECKPATCH_PATH $options \"$p\" 2>/dev/null)\n+\t[ $? -ne 0 ] || continue\n+\tprintf '%s\\n' \"$report\" | head -n -6\n+\tstatus=$(($status + 1))\n+done\n+exit $status\ndiff --git a/scripts/load-devel-config.sh b/scripts/load-devel-config.sh\nnew file mode 100755\nindex 0000000..489f007\n--- /dev/null\n+++ b/scripts/load-devel-config.sh\n@@ -0,0 +1,14 @@\n+#! /bin/echo must be loaded with .\n+\n+# Load DPDK devel config and allow override\n+# from system file\n+test ! -r /etc/dpdk/devel.config ||\n+        . /etc/dpdk/devel.config\n+# from user file\n+test ! -r ~/.config/dpdk/devel.config ||\n+        . ~/.config/dpdk/devel.config\n+# from local file\n+test ! -r $(dirname $(readlink -m $0))/../.develconfig ||\n+        . $(dirname $(readlink -m $0))/../.develconfig\n+\n+# The config files must export variables in the shell style\n",
    "prefixes": [
        "dpdk-dev",
        "1/2"
    ]
}