get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 61858,
    "url": "http://patches.dpdk.org/api/patches/61858/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/8be796b7850b3759e849592f789caf31ad0e83e1.1571910363.git.anatoly.burakov@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": "<8be796b7850b3759e849592f789caf31ad0e83e1.1571910363.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/8be796b7850b3759e849592f789caf31ad0e83e1.1571910363.git.anatoly.burakov@intel.com",
    "date": "2019-10-24T09:46:40",
    "name": "[v5,03/10] buildtools: add ABI update shell script",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "eb579be7ecca5990170643f666f7f25c090f8a7b",
    "submitter": {
        "id": 4,
        "url": "http://patches.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@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/8be796b7850b3759e849592f789caf31ad0e83e1.1571910363.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 7035,
            "url": "http://patches.dpdk.org/api/series/7035/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7035",
            "date": "2019-10-24T09:46:37",
            "name": "Implement the new ABI policy and add helper scripts",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/7035/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/61858/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/61858/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 E3EB21E901;\n\tThu, 24 Oct 2019 11:47:01 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 219461E8D7\n\tfor <dev@dpdk.org>; Thu, 24 Oct 2019 11:46:54 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t24 Oct 2019 02:46:54 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n\tsilpixa00399498.ger.corp.intel.com) ([10.237.223.151])\n\tby fmsmga007.fm.intel.com with ESMTP; 24 Oct 2019 02:46:53 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.68,224,1569308400\"; d=\"scan'208\";a=\"197686513\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "john.mcnamara@intel.com, ray.kinsella@intel.com,\n\tbruce.richardson@intel.com, thomas@monjalon.net,\n\tdavid.marchand@redhat.com",
        "Date": "Thu, 24 Oct 2019 10:46:40 +0100",
        "Message-Id": "<8be796b7850b3759e849592f789caf31ad0e83e1.1571910363.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<cover.1571910363.git.anatoly.burakov@intel.com>",
            "<cover.1571910363.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1571910363.git.anatoly.burakov@intel.com>",
            "<cover.1571322634.git.anatoly.burakov@intel.com>\n\t<cover.1571910363.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v5 03/10] buildtools: add ABI update shell script",
        "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": "In order to facilitate mass updating of version files, add a shell\nscript that recurses into lib/ and drivers/ directories and calls\nthe ABI version update script.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n\nNotes:\n    v3:\n    - Switch to sh rather than bash, and remove bash-isms\n    - Address review comments\n    \n    v2:\n    - Add this patch to split the shell script from previous commit\n    - Fixup miscellaneous bugs\n\n buildtools/update-abi.sh | 42 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 42 insertions(+)\n create mode 100755 buildtools/update-abi.sh",
    "diff": "diff --git a/buildtools/update-abi.sh b/buildtools/update-abi.sh\nnew file mode 100755\nindex 0000000000..89ba5804a6\n--- /dev/null\n+++ b/buildtools/update-abi.sh\n@@ -0,0 +1,42 @@\n+#!/bin/sh\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2019 Intel Corporation\n+\n+abi_version=$1\n+abi_version_file=\"./config/ABI_VERSION\"\n+update_path=\"lib drivers\"\n+\n+if [ -z \"$1\" ]; then\n+      # output to stderr\n+      >&2 echo \"Please provide ABI version\"\n+      exit 1\n+fi\n+\n+# check version string format\n+echo $abi_version | grep -q -e \"^[[:digit:]]\\{1,2\\}\\.[[:digit:]]\\{1,2\\}$\"\n+if [ \"$?\" -ne 0 ]; then\n+      # output to stderr\n+      >&2 echo \"ABI version must be formatted as MAJOR.MINOR version\"\n+      exit 1\n+fi\n+\n+if [ -n \"$2\" ]; then\n+      abi_version_file=$2\n+fi\n+\n+if [ -n \"$3\" ]; then\n+      # drop $1 and $2\n+      shift 2\n+      # assign all other arguments as update paths\n+      update_path=$@\n+fi\n+\n+echo \"New ABI version:\" $abi_version\n+echo \"ABI_VERSION path:\" $abi_version_file\n+echo \"Path to update:\" $update_path\n+\n+echo $abi_version > $abi_version_file\n+\n+find $update_path -name  \\*version.map -exec \\\n+      ./buildtools/update_version_map_abi.py {} \\\n+      $abi_version \\; -print\n",
    "prefixes": [
        "v5",
        "03/10"
    ]
}