get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47889,
    "url": "http://patches.dpdk.org/api/patches/47889/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181106124912.40700-1-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": "<20181106124912.40700-1-vipin.varghese@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181106124912.40700-1-vipin.varghese@intel.com",
    "date": "2018-11-06T12:49:04",
    "name": "[v4,1/9] app/procinfo: add usage for new debug",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "aba1545e4b0c2bb35166872f5e0346d9bb1caf22",
    "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/20181106124912.40700-1-vipin.varghese@intel.com/mbox/",
    "series": [
        {
            "id": 2297,
            "url": "http://patches.dpdk.org/api/series/2297/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2297",
            "date": "2018-11-06T12:49:04",
            "name": "[v4,1/9] app/procinfo: add usage for new debug",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/2297/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/47889/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/47889/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 A5ADA2862;\n\tTue,  6 Nov 2018 13:52:54 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 4F59E1D7\n\tfor <dev@dpdk.org>; Tue,  6 Nov 2018 13:52:53 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Nov 2018 04:52:52 -0800",
            "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby fmsmga001.fm.intel.com with ESMTP; 06 Nov 2018 04:52:49 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,471,1534834800\"; d=\"scan'208\";a=\"105696473\"",
        "From": "Vipin Varghese <vipin.varghese@intel.com>",
        "To": "dev@dpdk.org, thomas@monjalon.net, reshma.pattan@intel.com,\n\tstephen@networkplumber.org, john.mcnamara@intel.com",
        "Cc": "stephen1.byrne@intel.com, michael.j.glynn@intel.com, amol.patel@intel.com,\n\tVipin Varghese <vipin.varghese@intel.com>",
        "Date": "Tue,  6 Nov 2018 18:19:04 +0530",
        "Message-Id": "<20181106124912.40700-1-vipin.varghese@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH v4 1/9] app/procinfo: add usage for new debug",
        "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": "Update the file with MACRO for stats border, usage text information\nand string comparision.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\n---\n\nV3:\n - change the usage details - Vipin Varghese\n\nV2:\n - change word dbg to show - Stephen Hemminger\n---\n app/proc-info/main.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex c20effa4f..5779f07e7 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -36,6 +36,10 @@\n \n #define MAX_STRING_LEN 256\n \n+#define STATS_BDR_FMT \"========================================\"\n+#define STATS_BDR_STR(w, s) printf(\"%.*s%s%.*s\\n\", w, \\\n+\tSTATS_BDR_FMT, s, w, STATS_BDR_FMT)\n+\n /**< mask of enabled ports */\n static uint32_t enabled_port_mask;\n /**< Enable stats. */\n@@ -83,7 +87,12 @@ proc_info_usage(const char *prgname)\n \t\t\"  --stats-reset: to reset port statistics\\n\"\n \t\t\"  --xstats-reset: to reset port extended statistics\\n\"\n \t\t\"  --collectd-format: to print statistics to STDOUT in expected by collectd format\\n\"\n-\t\t\"  --host-id STRING: host id used to identify the system process is running on\\n\",\n+\t\t\"  --host-id STRING: host id used to identify the system process is running on\\n\"\n+\t\t\"  --show-port to display ports information\\n\"\n+\t\t\"  --show-tm to display traffic manager information for ports\\n\"\n+\t\t\"  --show-crypto to display crypto information\\n\"\n+\t\t\"  --show-ring[=name] to display ring information\\n\"\n+\t\t\"  --show-mempool[=name] to display mempool information\\n\",\n \t\tprgname);\n }\n \n@@ -190,6 +199,11 @@ proc_info_parse_args(int argc, char **argv)\n \t\t{\"collectd-format\", 0, NULL, 0},\n \t\t{\"xstats-ids\", 1, NULL, 1},\n \t\t{\"host-id\", 0, NULL, 0},\n+\t\t{\"show-port\", 0, NULL, 0},\n+\t\t{\"show-tm\", 0, NULL, 0},\n+\t\t{\"show-crypto\", 0, NULL, 0},\n+\t\t{\"show-ring\", optional_argument, NULL, 0},\n+\t\t{\"show-mempool\", optional_argument, NULL, 0},\n \t\t{NULL, 0, 0, 0}\n \t};\n \n",
    "prefixes": [
        "v4",
        "1/9"
    ]
}