get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115692,
    "url": "https://patches.dpdk.org/api/patches/115692/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220831115250.362189-1-conor.walsh@intel.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": "<20220831115250.362189-1-conor.walsh@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220831115250.362189-1-conor.walsh@intel.com",
    "date": "2022-08-31T11:52:49",
    "name": "[v2,1/2] usertools/telemetry: move main to function",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3eb3278cd6f03ef0338ced9601a3d67751a646fc",
    "submitter": {
        "id": 1935,
        "url": "https://patches.dpdk.org/api/people/1935/?format=api",
        "name": "Conor Walsh",
        "email": "conor.walsh@intel.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/20220831115250.362189-1-conor.walsh@intel.com/mbox/",
    "series": [
        {
            "id": 24478,
            "url": "https://patches.dpdk.org/api/series/24478/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24478",
            "date": "2022-08-31T11:52:49",
            "name": "[v2,1/2] usertools/telemetry: move main to function",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/24478/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/115692/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/115692/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id F23E7A00C2;\n\tWed, 31 Aug 2022 13:53:04 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 978E940F18;\n\tWed, 31 Aug 2022 13:53:04 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 751E940395\n for <dev@dpdk.org>; Wed, 31 Aug 2022 13:53:03 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 31 Aug 2022 04:52:55 -0700",
            "from silpixa00401160.ir.intel.com ([10.55.128.243])\n by orsmga006.jf.intel.com with ESMTP; 31 Aug 2022 04:52:53 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1661946783; x=1693482783;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Kjf9eepqCtCbfkck37FZJCSpyBdLsmOm1KdDcOAklmo=;\n b=gJf05IJkV4vpdRJgSFhyZnx9hrNiQq/p6r55Bc/MpXuNJVdLZuvltmBP\n rDfMe3rNrmyLv6awQYnd+3dr5tI9CMvjdgYLaSfG4WKCxX2vzaVphAs51\n 7xDb9QTbJTwg6eRsLgBm25voew050kXb2HIOmwT5hTL6XSRMBkQ2MQ0zi\n 5LDR52hCcAcDynmLcuykwY8snBJIttyFweDqqhPU8P0UrK4DIywKT+Xi8\n tHGRQ4PIlZDBuRAULzXqdSjehaYuqXqK0XldRtj7cPB6KJZSfcQpvxOYC\n ykaeDniZtSzRAjccp5/RILovT5gV2ep++ZxBh/ImvFVLDwR2TpS0YBlLD g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10455\"; a=\"275176303\"",
            "E=Sophos;i=\"5.93,277,1654585200\"; d=\"scan'208\";a=\"275176303\"",
            "E=Sophos;i=\"5.93,277,1654585200\"; d=\"scan'208\";a=\"589002658\""
        ],
        "X-ExtLoop1": "1",
        "From": "Conor Walsh <conor.walsh@intel.com>",
        "To": "ciara.power@intel.com,\n\tthomas@monjalon.net,\n\tanatoly.burakov@intel.com",
        "Cc": "dev@dpdk.org, bruce.richardson@intel.com,\n Conor Walsh <conor.walsh@intel.com>",
        "Subject": "[PATCH v2 1/2] usertools/telemetry: move main to function",
        "Date": "Wed, 31 Aug 2022 12:52:49 +0100",
        "Message-Id": "<20220831115250.362189-1-conor.walsh@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220824081539.12379-1-conor.walsh@intel.com>",
        "References": "<20220824081539.12379-1-conor.walsh@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "In order to allow other tools to use the generic telemetry functions\nprovided within dpdk-telemetry move the \"main\" part of the code to\na function and only run this code if the tool has been called by a\nuser. This allows other scripts to use the tool as a module to\nprevent code duplication.\n\nSigned-off-by: Conor Walsh <conor.walsh@intel.com>\n---\n usertools/dpdk-telemetry.py | 43 +++++++++++++++++++++----------------\n 1 file changed, 24 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/usertools/dpdk-telemetry.py b/usertools/dpdk-telemetry.py\nindex a81868a547..2c85fd95b4 100755\n--- a/usertools/dpdk-telemetry.py\n+++ b/usertools/dpdk-telemetry.py\n@@ -161,22 +161,27 @@ def readline_complete(text, state):\n     return matches[state]\n \n \n-readline.parse_and_bind('tab: complete')\n-readline.set_completer(readline_complete)\n-readline.set_completer_delims(readline.get_completer_delims().replace('/', ''))\n-\n-parser = argparse.ArgumentParser()\n-parser.add_argument('-f', '--file-prefix', default=DEFAULT_PREFIX,\n-                    help='Provide file-prefix for DPDK runtime directory')\n-parser.add_argument('-i', '--instance', default='0', type=int,\n-                    help='Provide instance number for DPDK application')\n-parser.add_argument('-l', '--list', action=\"store_true\", default=False,\n-                    help='List all possible file-prefixes and exit')\n-args = parser.parse_args()\n-if args.list:\n-    list_fp()\n-    sys.exit(0)\n-sock_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix), SOCKET_NAME)\n-if args.instance > 0:\n-    sock_path += \":{}\".format(args.instance)\n-handle_socket(args, sock_path)\n+def main():\n+    readline.parse_and_bind('tab: complete')\n+    readline.set_completer(readline_complete)\n+    readline.set_completer_delims(readline.get_completer_delims().replace('/', ''))\n+\n+    parser = argparse.ArgumentParser()\n+    parser.add_argument('-f', '--file-prefix', default=DEFAULT_PREFIX,\n+                        help='Provide file-prefix for DPDK runtime directory')\n+    parser.add_argument('-i', '--instance', default='0', type=int,\n+                        help='Provide instance number for DPDK application')\n+    parser.add_argument('-l', '--list', action=\"store_true\", default=False,\n+                        help='List all possible file-prefixes and exit')\n+    args = parser.parse_args()\n+    if args.list:\n+        list_fp()\n+        sys.exit(0)\n+    sock_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix), SOCKET_NAME)\n+    if args.instance > 0:\n+        sock_path += \":{}\".format(args.instance)\n+    handle_socket(args, sock_path)\n+\n+\n+if __name__ == '__main__':\n+    main()\n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}