get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 106609,
    "url": "http://patches.dpdk.org/api/patches/106609/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220127145142.86742-3-blo@iol.unh.edu/",
    "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": "<20220127145142.86742-3-blo@iol.unh.edu>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220127145142.86742-3-blo@iol.unh.edu",
    "date": "2022-01-27T14:51:39",
    "name": "[2/5] examples/fips_validation: add json info to header",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3189bf0ac6a1ec4fc474d941268bef0d68695c50",
    "submitter": {
        "id": 1678,
        "url": "http://patches.dpdk.org/api/people/1678/?format=api",
        "name": "Brandon Lo",
        "email": "blo@iol.unh.edu"
    },
    "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/20220127145142.86742-3-blo@iol.unh.edu/mbox/",
    "series": [
        {
            "id": 21400,
            "url": "http://patches.dpdk.org/api/series/21400/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21400",
            "date": "2022-01-27T14:51:37",
            "name": "Add JSON vector set support to fips validation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/21400/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/106609/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/106609/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 34D69A04A6;\n\tThu, 27 Jan 2022 15:52:01 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DA19C427FC;\n\tThu, 27 Jan 2022 15:51:49 +0100 (CET)",
            "from mail-qt1-f169.google.com (mail-qt1-f169.google.com\n [209.85.160.169])\n by mails.dpdk.org (Postfix) with ESMTP id AE8BB427E5\n for <dev@dpdk.org>; Thu, 27 Jan 2022 15:51:48 +0100 (CET)",
            "by mail-qt1-f169.google.com with SMTP id i4so2702714qtr.0\n for <dev@dpdk.org>; Thu, 27 Jan 2022 06:51:48 -0800 (PST)",
            "from blo.iol.unh.edu ([2606:4100:3880:1270:8f3:b5b9:6ccc:8a5c])\n by smtp.gmail.com with ESMTPSA id 195sm1507324qkf.30.2022.01.27.06.51.46\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 27 Jan 2022 06:51:47 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu;\n s=unh-iol;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Ga2+F2WdhQPGQa6+n0WhdVmssIAHFiGxO5U5ZDENIFw=;\n b=LaF38sIZvKHeA9wyDqtibenOyz1qZ6Amg6bkBPXR7aICubJD0lpiHzxpM8sphsZkKR\n tkxkNtwgFCiDFp9oVzGZ6KkKqH2UroVll5gnj1QgP1zw9+h3mk7S5c0eeGrT7zC6gzWR\n iV2EJ7m6mVPXkrEYkW+eLOMgqNDANuyazn8BI=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Ga2+F2WdhQPGQa6+n0WhdVmssIAHFiGxO5U5ZDENIFw=;\n b=jwY/k6/427cCNUBhfz/qNEGEj3mtZ0IYXbiiLEY6vpWb7EKmlDlm5JjCnM7lcyGud3\n 2LJZFZaR6mimggNMOsJvoaocUQBsy1w9bpTspwdrWT0bQq+AFRz83kQOqiofG5rOaiNd\n YM//a4xX5Gkz5m0aQY9yhtG6QfHXyaER2G97bQweVL4LLancD5UyHQFpFELMVNgTFCij\n BZT+lEfgyjPrRl2Lx0BgJZZtuOgYM5L595NLbgzh2msxZyOtTqCF1cUwA1xPk2dGsLgn\n QESpWviNrTx6wGEpH6UNcpNltnUgBVQ0onvjdhyrRDrFqLTQ6mwNGe2CC7JkN5XO4tSE\n EjUA==",
        "X-Gm-Message-State": "AOAM53057ce/aNi55QqwLEY4w57lGJEwC4RdLbI/aQMfkO32XH3Fsyc3\n l3MxJa7VP8HwVpn60FDsxHxHM8rr6BAdIJEqKlxQqPyE69Vm75GFSKJI8ZN5V7zn3OUSHomASwj\n IPqrv31RR3pEzB5zN5Yr4TvVdIXU4lXN1RopU0T5mkkaI18psCQI=",
        "X-Google-Smtp-Source": "\n ABdhPJxztAoiVKIrSreH6sAhGejBuu/azd0ZiT4fkLzdcPrfizn9ND5cjxKaDXD9tSeDpPj34ZSCvw==",
        "X-Received": "by 2002:ac8:580b:: with SMTP id g11mr2953817qtg.457.1643295107540;\n Thu, 27 Jan 2022 06:51:47 -0800 (PST)",
        "From": "Brandon Lo <blo@iol.unh.edu>",
        "To": "dev@dpdk.org",
        "Cc": "ciara.power@intel.com, roy.fan.zhang@intel.com,\n Brandon Lo <blo@iol.unh.edu>",
        "Subject": "[PATCH 2/5] examples/fips_validation: add json info to header",
        "Date": "Thu, 27 Jan 2022 09:51:39 -0500",
        "Message-Id": "<20220127145142.86742-3-blo@iol.unh.edu>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220127145142.86742-1-blo@iol.unh.edu>",
        "References": "<20220127145142.86742-1-blo@iol.unh.edu>",
        "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": "Added json-specific functions and other information needed to\ntest the new FIPS test vectors.\n\nSigned-off-by: Brandon Lo <blo@iol.unh.edu>\n---\n examples/fips_validation/fips_validation.h | 42 +++++++++++++++++++++-\n 1 file changed, 41 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h\nindex aaadf01ba8..e2789df93a 100644\n--- a/examples/fips_validation/fips_validation.h\n+++ b/examples/fips_validation/fips_validation.h\n@@ -5,6 +5,10 @@\n #ifndef _FIPS_VALIDATION_H_\n #define _FIPS_VALIDATION_H_\n \n+#ifdef RTE_HAS_JANSSON\n+#include <jansson.h>\n+#endif /* RTE_HAS_JANSSON */\n+\n #define FIPS_PARSE_ERR(fmt, args)\t\t\t\t\t\\\n \tRTE_LOG(ERR, USER1, \"FIPS parse error\" ## fmt ## \"\\n\", ## args)\n \n@@ -24,6 +28,9 @@\n #define REQ_FILE_PERFIX\t\t\"req\"\n #define RSP_FILE_PERFIX\t\t\"rsp\"\n #define FAX_FILE_PERFIX\t\t\"fax\"\n+#define JSON_FILE_PERFIX\t\"json\"\n+\n+#define ACVVERSION\t\t\t\"1.0\"\n \n enum fips_test_algorithms {\n \t\tFIPS_TEST_ALGO_AES = 0,\n@@ -40,7 +47,8 @@ enum fips_test_algorithms {\n enum file_types {\n \tFIPS_TYPE_REQ = 1,\n \tFIPS_TYPE_FAX,\n-\tFIPS_TYPE_RSP\n+\tFIPS_TYPE_RSP,\n+\tFIPS_TYPE_JSON,\n };\n \n enum fips_test_op {\n@@ -161,6 +169,23 @@ struct gcm_interim_data {\n \tuint8_t gen_iv;\n };\n \n+#ifdef RTE_HAS_JANSSON\n+struct fips_test_json_info {\n+\t/* Information used for reading from json */\n+\tjson_t *json_root;\n+\tjson_t *json_vector_set;\n+\tjson_t *json_test_group;\n+\tjson_t *json_test_case;\n+\t/* Location of json write output */\n+\tjson_t *json_write_root;\n+\tjson_t *json_write_group;\n+\tjson_t *json_write_set;\n+\tjson_t *json_write_case;\n+\t/* Other info */\n+\tuint8_t is_sample;\n+};\n+#endif /* RTE_HAS_JANSSON */\n+\n struct fips_test_interim_info {\n \tFILE *fp_rd;\n \tFILE *fp_wr;\n@@ -196,6 +221,10 @@ struct fips_test_interim_info {\n extern struct fips_test_vector vec;\n extern struct fips_test_interim_info info;\n \n+#ifdef RTE_HAS_JANSSON\n+extern struct fips_test_json_info json_info;\n+#endif /* RTE_HAS_JANSSON */\n+\n int\n fips_test_init(const char *req_file_path, const char *rsp_file_path,\n \t\tconst char *device_name);\n@@ -212,6 +241,17 @@ fips_test_parse_one_case(void);\n void\n fips_test_write_one_case(void);\n \n+#ifdef RTE_HAS_JANSSON\n+int\n+fips_test_parse_one_json_vector_set(void);\n+\n+int\n+fips_test_parse_one_json_group(void);\n+\n+int\n+fips_test_parse_one_json_case(void);\n+#endif /* RTE_HAS_JANSSON */\n+\n int\n parse_test_aes_init(void);\n \n",
    "prefixes": [
        "2/5"
    ]
}