get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44918,
    "url": "http://patches.dpdk.org/api/patches/44918/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180919134827.15801-1-bluca@debian.org/",
    "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": "<20180919134827.15801-1-bluca@debian.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180919134827.15801-1-bluca@debian.org",
    "date": "2018-09-19T13:48:27",
    "name": "[v2] doc: support building HTML guides with meson",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1f6d814f3a7861db27aed96d3ca21bc2063cee08",
    "submitter": {
        "id": 823,
        "url": "http://patches.dpdk.org/api/people/823/?format=api",
        "name": "Luca Boccassi",
        "email": "bluca@debian.org"
    },
    "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/20180919134827.15801-1-bluca@debian.org/mbox/",
    "series": [
        {
            "id": 1390,
            "url": "http://patches.dpdk.org/api/series/1390/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1390",
            "date": "2018-09-19T13:48:27",
            "name": "[v2] doc: support building HTML guides with meson",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/1390/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44918/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44918/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 7BE101B53;\n\tWed, 19 Sep 2018 15:48:36 +0200 (CEST)",
            "from mail-wm1-f66.google.com (mail-wm1-f66.google.com\n\t[209.85.128.66]) by dpdk.org (Postfix) with ESMTP id 17014F04\n\tfor <dev@dpdk.org>; Wed, 19 Sep 2018 15:48:33 +0200 (CEST)",
            "by mail-wm1-f66.google.com with SMTP id t25-v6so7033213wmi.3\n\tfor <dev@dpdk.org>; Wed, 19 Sep 2018 06:48:33 -0700 (PDT)",
            "from localhost ([2001:1be0:110d:fcfe:489f:80a9:5d59:c6bd])\n\tby smtp.gmail.com with ESMTPSA id\n\tc8sm2796490wrx.92.2018.09.19.06.48.30\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 19 Sep 2018 06:48:30 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=HP4DaVLgpn57a1K+7ovhJ/mh239JJVqJWQbKViHZ2JU=;\n\tb=TJF44klpvaTTdsnPLHAOTUdfhIDuMLsM8raj//Tw3lljQmFRkIsKfpJQVpgYrcJMLz\n\t7WXC6kbx/iqsTyzUQdEWN/Epd0d092HPCff3nBYhDgIudWIEW98iNiyR8/FcL3ON7Sjf\n\tl1i95AbG+ruMr2yjEQ1k5ioqKW3/x4gV5ylqC2Jmfzf9LjbXtF4Qzgpcw7NSW+SxA9K/\n\tGEnyweTJe2zJCWNuucQau/9g9rSQtVoYHy/kFcukXtj+i1XcST/DzQ/lrtcCUQ8UUAXo\n\tvO43h2eLX0YG4AXpc9gj8W7CRrJODiE6SBQPbEC6maIF8VwayF/ohR2mF8HipkjevPKV\n\tIVrQ==",
        "X-Gm-Message-State": "APzg51C5ANEv03xisQekpccO7eQrIxX8V+022MV8qDbQtr4lsaPxm2yA\n\t4ZUpWu4Wq2NnJ+PBvDpFKnoFOUj9xsw=",
        "X-Google-Smtp-Source": "ANB0VdbVuPR48qWar0jgQIR5iwKTsc+3eRIZL/Mq5wIORuNke0oNOCeVXxCVQjy0c5DQ70dQ/aIcYg==",
        "X-Received": "by 2002:a1c:610b:: with SMTP id\n\tv11-v6mr21115695wmb.20.1537364912033; \n\tWed, 19 Sep 2018 06:48:32 -0700 (PDT)",
        "From": "Luca Boccassi <bluca@debian.org>",
        "To": "dev@dpdk.org",
        "Cc": "bruce.richardson@intel.com,\n\tLuca Boccassi <bluca@debian.org>",
        "Date": "Wed, 19 Sep 2018 14:48:27 +0100",
        "Message-Id": "<20180919134827.15801-1-bluca@debian.org>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20180911161322.20114-1-bruce.richardson@intel.com>",
        "References": "<20180911161322.20114-1-bruce.richardson@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] doc: support building HTML guides with meson",
        "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": "From: Bruce Richardson <bruce.richardson@intel.com>\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nSigned-off-by: Luca Boccassi <bluca@debian.org>\n---\nv2: send on behalf of Bruce on request.\n    - tell sphinx to create .doctrees working files in the\n      parent of the target directory so that they don't get\n      installed\n    - change the output directory so that it matches the legacy\n      makefiles directory structure (on install)\n    - add install_dir to fix ninja install\n    - add post-install calls to delete .buildinfo sphinx\n      temporary file and to install custom.css as the makefiles\n      do\nThe installed directory has been verified to be bit-by-bit\nidentical to the legacy makefiles with diffoscope.\n\n doc/api/meson.build    |  5 ++---\n doc/guides/meson.build | 27 +++++++++++++++++++++++++++\n doc/meson.build        | 11 +++++++++++\n 3 files changed, 40 insertions(+), 3 deletions(-)\n create mode 100644 doc/guides/meson.build",
    "diff": "diff --git a/doc/api/meson.build b/doc/api/meson.build\nindex 13fcbb8cd7..30bdc573b5 100644\n--- a/doc/api/meson.build\n+++ b/doc/api/meson.build\n@@ -50,7 +50,6 @@ if doxygen.found()\n \t\tinstall_dir: htmldir,\n \t\tbuild_by_default: false)\n \n-\trun_target('doc', command: 'true', depends: doxy_build)\n-else\n-\trun_target('doc', command: ['echo', 'doxygen', 'not', 'found'])\n+\tdoc_targets += doxy_build\n+\tdoc_target_names += 'Doxygen_API'\n endif\ndiff --git a/doc/guides/meson.build b/doc/guides/meson.build\nnew file mode 100644\nindex 0000000000..24f5316c5c\n--- /dev/null\n+++ b/doc/guides/meson.build\n@@ -0,0 +1,27 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Intel Corporation\n+\n+sphinx = find_program('sphinx-build', required: get_option('enable_docs'))\n+\n+if sphinx.found()\n+\thtmldir = join_paths('share', 'doc', 'dpdk')\n+\thtml_guides_build = custom_target('html_guides_build',\n+\t\tinput: meson.current_source_dir(),\n+\t\toutput: 'guides',\n+\t\tcommand: [sphinx, '-b', 'html', '@INPUT@', meson.current_build_dir() + '/guides',\n+\t\t\t'-d', meson.current_build_dir() + '/.doctrees'],\n+\t\tbuild_by_default: false,\n+\t\tinstall: get_option('enable_docs'),\n+\t\tinstall_dir: htmldir)\n+\n+\tdoc_targets += html_guides_build\n+\tdoc_target_names += 'HTML_Guides'\n+\n+\t# sphinx leaves a .buildinfo in the target directory, which we don't\n+\t# want to install. Note that sh -c has to be used, otherwise the\n+\t# env var does not get expanded if calling rm/install directly.\n+\tmeson.add_install_script('sh', '-c',\n+\t\t'rm -f $MESON_INSTALL_DESTDIR_PREFIX/share/doc/dpdk/guides/.buildinfo')\n+\tmeson.add_install_script('sh', '-c',\n+\t\t'install -D -m0644 $MESON_SOURCE_ROOT/doc/guides/custom.css $MESON_INSTALL_DESTDIR_PREFIX/share/doc/dpdk/guides/_static/css/')\n+endif\ndiff --git a/doc/meson.build b/doc/meson.build\nindex afca2e7133..c5410d85d6 100644\n--- a/doc/meson.build\n+++ b/doc/meson.build\n@@ -1,4 +1,15 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n \n+doc_targets = []\n+doc_target_names = []\n subdir('api')\n+subdir('guides')\n+\n+if doc_targets.length() == 0\n+\tmessage = 'No docs targets found'\n+else\n+\tmessage = 'Building docs:'\n+endif\n+run_target('doc', command: ['echo', message, doc_target_names],\n+\tdepends: doc_targets)\n",
    "prefixes": [
        "v2"
    ]
}