get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808247,
    "url": "http://patchwork.ozlabs.org/api/patches/808247/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170831131425.3953-2-marcandre.lureau@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170831131425.3953-2-marcandre.lureau@redhat.com>",
    "list_archive_url": null,
    "date": "2017-08-31T13:14:25",
    "name": "[2/2] .dir-locals.el: add json schema to auto-mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7229678498ff295a8b594fbfd1fa81061c4ca065",
    "submitter": {
        "id": 66774,
        "url": "http://patchwork.ozlabs.org/api/people/66774/?format=api",
        "name": "Marc-André Lureau",
        "email": "marcandre.lureau@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170831131425.3953-2-marcandre.lureau@redhat.com/mbox/",
    "series": [
        {
            "id": 825,
            "url": "http://patchwork.ozlabs.org/api/series/825/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=825",
            "date": "2017-08-31T13:14:24",
            "name": "[1/2] .dir-locals.el: add makefiles to auto-mode",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/825/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808247/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808247/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=marcandre.lureau@redhat.com"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjjZV5bs0z9sPt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 23:16:50 +1000 (AEST)",
            "from localhost ([::1]:55766 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dnPKy-0001SD-SI\n\tfor incoming@patchwork.ozlabs.org; Thu, 31 Aug 2017 09:16:48 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:53919)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <marcandre.lureau@redhat.com>) id 1dnPJA-0000OA-76\n\tfor qemu-devel@nongnu.org; Thu, 31 Aug 2017 09:14:57 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <marcandre.lureau@redhat.com>) id 1dnPJ8-00005v-Ij\n\tfor qemu-devel@nongnu.org; Thu, 31 Aug 2017 09:14:56 -0400",
            "from mx1.redhat.com ([209.132.183.28]:38046)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <marcandre.lureau@redhat.com>)\n\tid 1dnPJ8-00005h-9s\n\tfor qemu-devel@nongnu.org; Thu, 31 Aug 2017 09:14:54 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 60A61267FB;\n\tThu, 31 Aug 2017 13:14:53 +0000 (UTC)",
            "from localhost (ovpn-112-53.ams2.redhat.com [10.36.112.53])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 9D16D7770C;\n\tThu, 31 Aug 2017 13:14:52 +0000 (UTC)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 60A61267FB",
        "From": "=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Thu, 31 Aug 2017 14:14:25 +0100",
        "Message-Id": "<20170831131425.3953-2-marcandre.lureau@redhat.com>",
        "In-Reply-To": "<20170831131425.3953-1-marcandre.lureau@redhat.com>",
        "References": "<20170831131425.3953-1-marcandre.lureau@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.13",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.30]);\n\tThu, 31 Aug 2017 13:14:53 +0000 (UTC)",
        "Content-Transfer-Encoding": "quoted-printable",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]",
        "X-Received-From": "209.132.183.28",
        "Subject": "[Qemu-devel] [PATCH 2/2] .dir-locals.el: add json schema to\n\tauto-mode",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n\tarmbru@redhat.com, Michael Roth <mdroth@linux.vnet.ibm.com>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "The json schema is more friendly to python-mode since it doesn't\nfollow strictly json (comments to start with).\n\nAll schema files add file variables to set the python mode, but most\ntests didn't. This will cover all json files now.\n\nSigned-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>\n---\n qapi-schema.json                        | 1 -\n qapi/block-core.json                    | 2 --\n qapi/block.json                         | 2 --\n qapi/common.json                        | 2 --\n qapi/crypto.json                        | 3 ---\n qapi/event.json                         | 2 --\n qapi/introspect.json                    | 1 -\n qapi/rocker.json                        | 2 --\n qapi/trace.json                         | 1 -\n .dir-locals.el                          | 4 +++-\n qga/qapi-schema.json                    | 2 --\n tests/qapi-schema/doc-good.json         | 1 -\n tests/qapi-schema/qapi-schema-test.json | 2 --\n 13 files changed, 3 insertions(+), 22 deletions(-)",
    "diff": "diff --git a/qapi-schema.json b/qapi-schema.json\nindex 802ea53d00..232fafeb65 100644\n--- a/qapi-schema.json\n+++ b/qapi-schema.json\n@@ -1,4 +1,3 @@\n-# -*- Mode: Python -*-\n ##\n # = Introduction\n #\ndiff --git a/qapi/block-core.json b/qapi/block-core.json\nindex 833c602150..5bd14554aa 100644\n--- a/qapi/block-core.json\n+++ b/qapi/block-core.json\n@@ -1,5 +1,3 @@\n-# -*- Mode: Python -*-\n-\n ##\n # == QAPI block core definitions (vm unrelated)\n ##\ndiff --git a/qapi/block.json b/qapi/block.json\nindex 414b61bde7..979906625d 100644\n--- a/qapi/block.json\n+++ b/qapi/block.json\n@@ -1,5 +1,3 @@\n-# -*- Mode: Python -*-\n-\n ##\n # = QAPI block definitions\n ##\ndiff --git a/qapi/common.json b/qapi/common.json\nindex 8355d5a2f3..25a9fdcbfd 100644\n--- a/qapi/common.json\n+++ b/qapi/common.json\n@@ -1,5 +1,3 @@\n-# -*- Mode: Python -*-\n-\n ##\n # = QAPI common definitions\n ##\ndiff --git a/qapi/crypto.json b/qapi/crypto.json\nindex 6b6fde367a..9ec7777603 100644\n--- a/qapi/crypto.json\n+++ b/qapi/crypto.json\n@@ -1,6 +1,3 @@\n-# -*- Mode: Python -*-\n-#\n-\n ##\n # = QAPI crypto definitions\n ##\ndiff --git a/qapi/event.json b/qapi/event.json\nindex 6d22b025cc..6f15ec1542 100644\n--- a/qapi/event.json\n+++ b/qapi/event.json\n@@ -1,5 +1,3 @@\n-# -*- Mode: Python -*-\n-\n ##\n # = Other events\n ##\ndiff --git a/qapi/introspect.json b/qapi/introspect.json\nindex cf77ff0669..83eaed3e43 100644\n--- a/qapi/introspect.json\n+++ b/qapi/introspect.json\n@@ -1,4 +1,3 @@\n-# -*- Mode: Python -*-\n #\n # QAPI/QMP introspection\n #\ndiff --git a/qapi/rocker.json b/qapi/rocker.json\nindex 3587661161..0026c7fd59 100644\n--- a/qapi/rocker.json\n+++ b/qapi/rocker.json\n@@ -1,5 +1,3 @@\n-# -*- Mode: Python -*-\n-\n ##\n # = Rocker switch device\n ##\ndiff --git a/qapi/trace.json b/qapi/trace.json\nindex de6588d9f7..679b1e298a 100644\n--- a/qapi/trace.json\n+++ b/qapi/trace.json\n@@ -1,4 +1,3 @@\n-# -*- mode: python -*-\n #\n # Copyright (C) 2011-2016 Lluís Vilanova <vilanova@ac.upc.edu>\n #\ndiff --git a/.dir-locals.el b/.dir-locals.el\nindex 13ec483765..46a6c73ed1 100644\n--- a/.dir-locals.el\n+++ b/.dir-locals.el\n@@ -2,6 +2,8 @@\n             (indent-tabs-mode . nil)))\n  (nil . ((eval . (setq auto-mode-alist (append\n                                         '((\"Makefile.*\" . makefile-gmake-mode)\n-                                          (\"\\\\.mak\\\\'\" . makefile-gmake-mode))\n+                                          (\"\\\\.mak\\\\'\" . makefile-gmake-mode)\n+                                          ;; json schema is not pure json\n+                                          (\"\\\\.json\\\\'\" . python-mode))\n                                         auto-mode-alist))))\n       ))\ndiff --git a/qga/qapi-schema.json b/qga/qapi-schema.json\nindex 90a0c8602b..757bb42521 100644\n--- a/qga/qapi-schema.json\n+++ b/qga/qapi-schema.json\n@@ -1,5 +1,3 @@\n-# *-*- Mode: Python -*-*\n-\n ##\n #\n # General note concerning the use of guest agent interfaces:\ndiff --git a/tests/qapi-schema/doc-good.json b/tests/qapi-schema/doc-good.json\nindex cfdc0a8a81..4a34eaf3d1 100644\n--- a/tests/qapi-schema/doc-good.json\n+++ b/tests/qapi-schema/doc-good.json\n@@ -1,4 +1,3 @@\n-# -*- Mode: Python -*-\n # Positive QAPI doc comment tests\n \n { 'pragma': { 'doc-required': true } }\ndiff --git a/tests/qapi-schema/qapi-schema-test.json b/tests/qapi-schema/qapi-schema-test.json\nindex c72dbd8050..6e5635ef66 100644\n--- a/tests/qapi-schema/qapi-schema-test.json\n+++ b/tests/qapi-schema/qapi-schema-test.json\n@@ -1,5 +1,3 @@\n-# *-*- Mode: Python -*-*\n-\n # This file is a stress test of supported qapi constructs that must\n # parse and compile correctly.\n \n",
    "prefixes": [
        "2/2"
    ]
}