get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 174,
    "url": "https://patches.dpdk.org/api/patches/174/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1408361365-12988-7-git-send-email-david.marchand@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": "<1408361365-12988-7-git-send-email-david.marchand@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1408361365-12988-7-git-send-email-david.marchand@6wind.com",
    "date": "2014-08-18T11:29:24",
    "name": "[dpdk-dev,v2,6/7] app/test: no more builtin commands",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6a32ded26ca269cdbf58db5900dd1af7137831a9",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1408361365-12988-7-git-send-email-david.marchand@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/174/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/174/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "Received": [
            "from mail-wg0-f51.google.com (mail-wg0-f51.google.com\n\t[74.125.82.51]) by dpdk.org (Postfix) with ESMTP id D4A7EB376\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 13:26:28 +0200 (CEST)",
            "by mail-wg0-f51.google.com with SMTP id b13so4803139wgh.34\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 04:29:51 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tes9sm41617207wjd.1.2014.08.18.04.29.50 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Aug 2014 04:29:50 -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=/S67NW7rmx2Nj2iTrgQ57ishT/lWvruaGRjvmoQiqqU=;\n\tb=b2G7VgLwrjy8RvIi1DCwyuMfQ3zcQYYQ9UlZirW/uEKr9mBG+ajcAyYrZ5wD0MrdWL\n\t8/rcVNhJ0n/T48nlyGe5S0G0m7N8XKUg5El5gltxj1qMyhggYKhCNYu0fnl0AyMH3W5c\n\tKkbwtVHIcluknShgdDcYfUMtAbVi4RfBLjlmHpwqCTB3QHhdPehWl5K+DzrzwcddpzAL\n\tR9Xhcnz0BNWVM3q0AIKXtU9n0Yf0hAQg+B/vIons+p9NC93hpvyIIUeuHCKM3ziSdBLS\n\t+aGXcjohmQP6m3C+m7uFtEHyuLCznaD4wkFaIilHYgrlZEqz5eJw+izNiWQsHMdZ4s8/\n\t+56Q==",
        "X-Gm-Message-State": "ALoCoQklK7dBDYnjFi3f5eYdV/OEu+1mrXlsNg+MDd6pd1Yo7hzv+o3K2jVBwTQGAu0Ku8PtEYTc",
        "X-Received": "by 10.180.206.134 with SMTP id lo6mr68806534wic.1.1408361391547; \n\tMon, 18 Aug 2014 04:29:51 -0700 (PDT)",
        "From": "David Marchand <david.marchand@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 18 Aug 2014 13:29:24 +0200",
        "Message-Id": "<1408361365-12988-7-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "In-Reply-To": "<1408361365-12988-1-git-send-email-david.marchand@6wind.com>",
        "References": "<1408361365-12988-1-git-send-email-david.marchand@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v2 6/7] app/test: no more builtin commands",
        "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>",
        "X-List-Received-Date": "Mon, 18 Aug 2014 11:26:29 -0000"
    },
    "content": "The builtin commands list is now empty, we can remove it.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n app/test/commands.c |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test/commands.c b/app/test/commands.c\nindex 0640ac9..b7c6ee0 100644\n--- a/app/test/commands.c\n+++ b/app/test/commands.c\n@@ -324,9 +324,8 @@ cmdline_parse_ctx_t main_ctx[] = {\n int commands_init(void)\n {\n \tstruct test_command *t;\n-\tchar builtin_commands[] = \"\";\n \tchar *commands, *ptr;\n-\tint commands_len = strlen(builtin_commands) + 1;\n+\tint commands_len = 0;\n \n \tTAILQ_FOREACH(t, &commands_list, next) {\n \t\tcommands_len += strlen(t->command) + 1;\n@@ -340,7 +339,8 @@ int commands_init(void)\n \tTAILQ_FOREACH(t, &commands_list, next) {\n \t\tptr += sprintf(ptr, \"%s#\", t->command);\n \t}\n-\tptr += sprintf(ptr, \"%s\", builtin_commands);\n+\tptr--;\n+\tptr[0] = '\\0';\n \n \tcmd_autotest_autotest.string_data.str = commands;\n \treturn 0;\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "6/7"
    ]
}