get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 14589,
    "url": "https://patches.dpdk.org/api/patches/14589/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1467734066-18240-1-git-send-email-thomas.monjalon@6wind.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": "<1467734066-18240-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1467734066-18240-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2016-07-05T15:54:26",
    "name": "[dpdk-dev] scripts: fix commit check of first word",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0d4ca2044ca6598edf7759e217c0d4adfeddbac6",
    "submitter": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.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/1467734066-18240-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/14589/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/14589/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 B7620685E;\n\tTue,  5 Jul 2016 17:54:35 +0200 (CEST)",
            "from mail-wm0-f52.google.com (mail-wm0-f52.google.com\n\t[74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 3833C684E\n\tfor <dev@dpdk.org>; Tue,  5 Jul 2016 17:54:35 +0200 (CEST)",
            "by mail-wm0-f52.google.com with SMTP id a66so158792502wme.0\n\tfor <dev@dpdk.org>; Tue, 05 Jul 2016 08:54:35 -0700 (PDT)",
            "from XPS13.localdomain (184.203.134.77.rev.sfr.net.\n\t[77.134.203.184]) by smtp.gmail.com with ESMTPSA id\n\tg195sm3423935wme.23.2016.07.05.08.54.33\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 05 Jul 2016 08:54:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id;\n\tbh=KM+IWfZhy2J1Z2mULcrGrnsjMIbt3kwNnwMYRHl3nUc=;\n\tb=uOBgIjs/m1WtF+wmbmvbdzFMHSnm5XT7UtH5Y1BvybpytLKZzioEYQ7IJni1WB2gfj\n\t4V1NZ4hft0NAnYxyuIStvpkqIpN92v5hI4mo82rQ1m8lN9HBjPMRxEmN37jYqxuFyDWs\n\t2HYEV+fmpz42uOzIa0URh0nTLkrMarP8ZvIjmn8H8yKXo+Y8b2XgUeZzK+MiQNLpAPko\n\tWADgRdyWFz69As/8BnFYtm7gjqO9kZFja8pHtWA5HfXNfjW+FlusTzc9NWfX0tNQGaa+\n\tK3feYK7zQ2w6ezq3Ad5lSKDgSeLrLI2k/1QA+Yl6gYbMlzurZ9muEqlsuYn7L5L2sWNb\n\td14w==",
        "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:cc:subject:date:message-id;\n\tbh=KM+IWfZhy2J1Z2mULcrGrnsjMIbt3kwNnwMYRHl3nUc=;\n\tb=nNCOe51BC63wodqqEft0xul7ABKrONSGJuJtpmLkfcBSOFNq3RxTAAM4YVM2XXLrGm\n\tHS1R/pwEoKGooznELZBSu1AjclO3/BvaYpwJd510ACKxl9fnU7sPCKatBtp241NxhugE\n\tpOMMnrEDzh5xKmmasRjda7C1vNN69GgZTzQLCS0fJwDEd4AGkZDbaLsebbmD3wxKyPgI\n\tGthkQ/1aifNusZIy2V1hSX5BT10xfs/4I6Fs8ZwH3PyDzrCdmf6TTf7g18EeC7BW3Obs\n\tEOh4vimQNKabBZoXx8w9ipTo6PTVKmq8kSoJb4HcuY1tmUf14/roK7ZeJqdLSJ603aAG\n\tmaJg==",
        "X-Gm-Message-State": "ALyK8tKGD+WJSYBURkjXMt1nW1ati0VX8X5axD9WHqczSlmusW1uvG7Rby6GTPJHPr7B6nV3",
        "X-Received": "by 10.28.97.4 with SMTP id v4mr17007640wmb.71.1467734075020;\n\tTue, 05 Jul 2016 08:54:35 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "bruce.richardson@intel.com",
        "Cc": "dev@dpdk.org",
        "Date": "Tue,  5 Jul 2016 17:54:26 +0200",
        "Message-Id": "<1467734066-18240-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "Subject": "[dpdk-dev] [PATCH] scripts: fix commit check of first word",
        "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": "The first word of each commit message is checked.\nBut when the commit range was greater than 1, only the latest commit\nwas checked.\nIt is fixed by checking each commit separately.\n\nFixes: 9c24780f0d5e (\"scripts: check first word of commit messages\")\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n scripts/check-git-log.sh | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh\nindex 7d2c7ee..c7fc0e4 100755\n--- a/scripts/check-git-log.sh\n+++ b/scripts/check-git-log.sh\n@@ -49,6 +49,7 @@ fi\n \n range=${1:-origin/master..}\n \n+commits=$(git log --format='%h' $range)\n headlines=$(git log --format='%s' $range)\n bodylines=$(git log --format='%b' $range)\n tags=$(git log --format='%b' $range | grep -i -e 'by *:' -e 'fix.*:')\n@@ -115,9 +116,10 @@ bad=$(echo \"$bodylines\" | grep -v '^Fixes:' | awk 'length>75 {print}' | sed 's,^\n [ -z \"$bad\" ] || printf \"Line too long:\\n$bad\\n\"\n \n # check starting commit message with \"It\"\n-bad=$(echo \"$bodylines\" | head -n1 | grep -E --color=always \\\n-\t-ie '^It ' \\\n-\t| sed 's,^,\\t,')\n+bad=$(for commit in $commits ; do\n+\tfirstbodyline=$(git log --format='%b' -1 $commit | head -n1)\n+\techo \"$firstbodyline\" | grep --color=always -ie '^It '\n+done | sed 's,^,\\t,')\n [ -z \"$bad\" ] || printf \"Wrong beginning of commit message:\\n$bad\\n\"\n \n # check tags spelling\n",
    "prefixes": [
        "dpdk-dev"
    ]
}