get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47245,
    "url": "http://patches.dpdk.org/api/patches/47245/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181023135751.21536-2-vipin.varghese@intel.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": "<20181023135751.21536-2-vipin.varghese@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181023135751.21536-2-vipin.varghese@intel.com",
    "date": "2018-10-23T13:57:44",
    "name": "[v1,2/9] app/procinfo: add compare for new options",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9665feda17a2a6fff990cdf5d6cb6328a91deb94",
    "submitter": {
        "id": 882,
        "url": "http://patches.dpdk.org/api/people/882/?format=api",
        "name": "Varghese, Vipin",
        "email": "vipin.varghese@intel.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/20181023135751.21536-2-vipin.varghese@intel.com/mbox/",
    "series": [
        {
            "id": 2036,
            "url": "http://patches.dpdk.org/api/series/2036/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2036",
            "date": "2018-10-23T13:57:43",
            "name": "[v1,1/9] app/procinfo: add usage for new debug",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/2036/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/47245/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/47245/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 91F861B50A;\n\tTue, 23 Oct 2018 16:01:47 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id A25C71B4F5\n\tfor <dev@dpdk.org>; Tue, 23 Oct 2018 16:01:43 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Oct 2018 07:01:37 -0700",
            "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby fmsmga008.fm.intel.com with ESMTP; 23 Oct 2018 07:01:34 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,416,1534834800\"; d=\"scan'208\";a=\"80934555\"",
        "From": "Vipin Varghese <vipin.varghese@intel.com>",
        "To": "dev@dpdk.org,\n\tmaryam.tahhan@intel.com,\n\treshma.pattan@intel.com",
        "Cc": "amol.patel@intel.com, sivaprasad.tummala@intel.com,\n\tstephen1.byrne@intel.com, michael.j.glynn@intel.com,\n\tVipin Varghese <vipin.varghese@intel.com>",
        "Date": "Tue, 23 Oct 2018 19:27:44 +0530",
        "Message-Id": "<20181023135751.21536-2-vipin.varghese@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20181023135751.21536-1-vipin.varghese@intel.com>",
        "References": "<20181023135751.21536-1-vipin.varghese@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v1 2/9] app/procinfo: add compare for new options",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add code for new debug options to compare usage strings and set\nenable flag.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\n---\n app/proc-info/main.c | 30 ++++++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 92854f5ba..5505d3fe3 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -63,6 +63,18 @@ static uint32_t mem_info;\n /**< Enable displaying xstat name. */\n static uint32_t enable_xstats_name;\n static char *xstats_name;\n+/**< Enable port debug. */\n+static uint32_t enable_dbg_port;\n+/**< Enable tm debug. */\n+static uint32_t enable_dbg_tm;\n+/**< Enable crypto debug. */\n+static uint32_t enable_dbg_crypto;\n+/**< Enable ring debug. */\n+static uint32_t enable_dbg_ring;\n+static char *ring_name;\n+/**< Enable mempool debug. */\n+static uint32_t enable_dbg_mempool;\n+static char *mempool_name;\n \n /**< Enable xstats by ids. */\n #define MAX_NB_XSTATS_IDS 1024\n@@ -247,6 +259,24 @@ proc_info_parse_args(int argc, char **argv)\n \t\t\telse if (!strncmp(long_option[option_index].name, \"xstats-reset\",\n \t\t\t\t\tMAX_LONG_OPT_SZ))\n \t\t\t\treset_xstats = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"dbg-port\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_dbg_port = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"dbg-tm\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_dbg_tm = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"dbg-crypto\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_dbg_crypto = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"dbg-ring\", MAX_LONG_OPT_SZ)) {\n+\t\t\t\tenable_dbg_ring = 1;\n+\t\t\t\tring_name = optarg;\n+\t\t\t} else if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"dbg-mempool\", MAX_LONG_OPT_SZ)) {\n+\t\t\t\tenable_dbg_mempool = 1;\n+\t\t\t\tmempool_name = optarg;\n+\t\t\t}\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\t/* Print xstat single value given by name*/\n",
    "prefixes": [
        "v1",
        "2/9"
    ]
}