get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 90152,
    "url": "http://patches.dpdk.org/api/patches/90152/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210331101659.506185-2-lijuan.tu@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210331101659.506185-2-lijuan.tu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210331101659.506185-2-lijuan.tu@intel.com",
    "date": "2021-03-31T10:16:54",
    "name": "[v3,1/6] tests/nic_single_core_perf: beauty JSON string",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4946b834ba29af6de1cc5ee409288b0c5d8f6711",
    "submitter": {
        "id": 1098,
        "url": "http://patches.dpdk.org/api/people/1098/?format=api",
        "name": "Tu, Lijuan",
        "email": "lijuan.tu@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20210331101659.506185-2-lijuan.tu@intel.com/mbox/",
    "series": [
        {
            "id": 15990,
            "url": "http://patches.dpdk.org/api/series/15990/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=15990",
            "date": "2021-03-31T10:16:54",
            "name": "revise tests/nic_signle_core_perf",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/15990/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/90152/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/90152/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-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 43FCFA034F;\n\tWed, 31 Mar 2021 04:18:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1909F140DE4;\n\tWed, 31 Mar 2021 04:18:02 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 4C95340141\n for <dts@dpdk.org>; Wed, 31 Mar 2021 04:18:00 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2021 19:17:56 -0700",
            "from dpdk-icelake-perf.sh.intel.com ([10.67.118.199])\n by fmsmga002.fm.intel.com with ESMTP; 30 Mar 2021 19:17:55 -0700"
        ],
        "IronPort-SDR": [
            "\n ajkFxlTy9fqojGtHQu17sDxRh2KklCro3/vV+69XBUZEzpb7IiUKRZjL3d+LxgSBXu8H/eINHo\n kch+7Ck3NkBg==",
            "\n gr2gm2rRQasG5QER5AEDg41UYsj6zKoyBPWQ56pMepk30jbuzbENWtoAg3XcRxcXJ0BnR092od\n xfDUsE3GIu6g=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9939\"; a=\"179027926\"",
            "E=Sophos;i=\"5.81,291,1610438400\"; d=\"scan'208\";a=\"179027926\"",
            "E=Sophos;i=\"5.81,291,1610438400\"; d=\"scan'208\";a=\"445432376\""
        ],
        "X-ExtLoop1": "1",
        "From": "Lijuan Tu <lijuan.tu@intel.com>",
        "To": "dliu@iol.unh.edu,\n\tohilyard@iol.unh.edu,\n\talialnu@nvidia.com",
        "Cc": "dts@dpdk.org,\n\tLijuan Tu <lijuan.tu@intel.com>",
        "Date": "Wed, 31 Mar 2021 10:16:54 +0000",
        "Message-Id": "<20210331101659.506185-2-lijuan.tu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210331101659.506185-1-lijuan.tu@intel.com>",
        "References": "<20210331101659.506185-1-lijuan.tu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [v3 1/6] tests/nic_single_core_perf: beauty JSON string",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "with separators and indents, the JSON are more human friendly.\n\nbefore:\n    {\"test_perf_nic_single_core\": [{ \"parameters\": [{\"name\": \"Txd/Rxd\", ...}, ... }\nafter:\n    {\n        \"test_perf_nic_single_core\": [\n            {\n                \"parameters\": [\n                    {\n                        \"name\": \"Txd/Rxd\",\n                         ...\n                    },\n        ...\n    }\n\nSigned-off-by: Lijuan Tu <lijuan.tu@intel.com>\n---\n tests/TestSuite_nic_single_core_perf.py | 9 +++++----\n 1 file changed, 5 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py\nindex 8266506b..edb4465d 100644\n--- a/tests/TestSuite_nic_single_core_perf.py\n+++ b/tests/TestSuite_nic_single_core_perf.py\n@@ -368,10 +368,11 @@ class TestNicSingleCorePerf(TestCase):\n                     row_dict0['parameters'].append(row_dict4)\n                     json_obj[case_name].append(row_dict0)\n                     status_result.append(row_dict0['status'])\n-        with open(os.path.join(rst.path2Result,\n-                               '{0:s}_single_core_perf.json'.format(\n-                                   self.nic)), 'w') as fp:\n-            json.dump(json_obj, fp)\n+\n+        json_file = os.path.join(rst.path2Result, '{0:s}_single_core_perf.json'.format(self.nic))\n+        with open(json_file, 'w') as fp:\n+            json.dump(json_obj, fp, indent=4, separators=(',', ': '), sort_keys=True)\n+\n         self.verify(\"FAIL\" not in status_result, \"Excessive gap between test results and expectations\")\n \n     def set_fields(self):\n",
    "prefixes": [
        "v3",
        "1/6"
    ]
}