get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808731,
    "url": "http://patchwork.ozlabs.org/api/patches/808731/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170901153758.8628-1-armbru@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": "<20170901153758.8628-1-armbru@redhat.com>",
    "list_archive_url": null,
    "date": "2017-09-01T15:37:11",
    "name": "[PULL,v2,00/47] QAPI patches for 2017-09-01",
    "commit_ref": null,
    "pull_url": "git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2017-09-01-v2",
    "state": "new",
    "archived": false,
    "hash": null,
    "submitter": {
        "id": 2645,
        "url": "http://patchwork.ozlabs.org/api/people/2645/?format=api",
        "name": "Markus Armbruster",
        "email": "armbru@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170901153758.8628-1-armbru@redhat.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/808731/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808731/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-mx07.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx07.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=armbru@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 3xkNn10xM4z9t3k\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 01:43:17 +1000 (AEST)",
            "from localhost ([::1]:46499 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 1dno6F-0002Kr-4s\n\tfor incoming@patchwork.ozlabs.org; Fri, 01 Sep 2017 11:43:15 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:51409)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <armbru@redhat.com>) id 1dno1J-0006b2-JU\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 11:38:16 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <armbru@redhat.com>) id 1dno1B-0001b1-8k\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 11:38:09 -0400",
            "from mx1.redhat.com ([209.132.183.28]:60113)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <armbru@redhat.com>) id 1dno1B-0001aY-0r\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 11:38:01 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])\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 20160C0467D5\n\tfor <qemu-devel@nongnu.org>; Fri,  1 Sep 2017 15:38:00 +0000 (UTC)",
            "from blackfin.pond.sub.org (ovpn-116-75.ams2.redhat.com\n\t[10.36.116.75])\n\tby smtp.corp.redhat.com (Postfix) with ESMTPS id BA75681F9C\n\tfor <qemu-devel@nongnu.org>; Fri,  1 Sep 2017 15:37:59 +0000 (UTC)",
            "by blackfin.pond.sub.org (Postfix, from userid 1000)\n\tid 42B4B1138662; Fri,  1 Sep 2017 17:37:58 +0200 (CEST)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 20160C0467D5",
        "From": "Markus Armbruster <armbru@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Fri,  1 Sep 2017 17:37:11 +0200",
        "Message-Id": "<20170901153758.8628-1-armbru@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.12",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.31]);\n\tFri, 01 Sep 2017 15:38:00 +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] [PULL v2 00/47] QAPI patches for 2017-09-01",
        "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>",
        "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 following changes since commit 223cd0e13f2e46078d7b573f0b8402bfbee339be:\n\n  Merge remote-tracking branch 'remotes/elmarco/tags/tidy-pull-request' into staging (2017-08-31 15:52:43 +0100)\n\nare available in the git repository at:\n\n  git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2017-09-01-v2\n\nfor you to fetch changes up to fcff1e3146d4b7930f3b4a7a60091479d6652a5f:\n\n  qapi: drop the sentinel in enum array (2017-09-01 17:26:24 +0200)\n\n----------------------------------------------------------------\nQAPI patches for 2017-09-01\n\n----------------------------------------------------------------\nEduardo Habkost (1):\n      qapi: Fix error handling code on alternate conflict\n\nMarc-André Lureau (19):\n      qdict: Add qdict_put_null() helper, and put it to use\n      qlit: move qlit from check-qjson to qobject/\n      qlit: use QLit prefix consistently\n      qlit: Change compound literals to initializers\n      qlit: rename compare_litqobj_to_qobj() to qlit_equal_qobject()\n      qlit: make qlit_equal_qobject return a bool\n      qlit: make qlit_equal_qobject() take const arguments\n      qlit: add QLIT_QNULL and QLIT_BOOL\n      qlit: Replace open-coded qnum_get_int() by call\n      tests/check-qlit: New, covering qobject/qlit.c\n      qlit: Tighten QLit dict vs QDict comparison\n      qlit: Tighten QLit list vs QList comparison\n      tpm: Clean up driver registration & lookup\n      hmp: Use qapi_enum_parse() in hmp_migrate_set_capability()\n      hmp: Use qapi_enum_parse() in hmp_migrate_set_parameter()\n      block: Use qemu_enum_parse() in blkdebug_debug_breakpoint()\n      quorum: Use qapi_enum_parse() in quorum_open()\n      qapi: Change data type of the FOO_lookup generated for enum FOO\n      qapi: drop the sentinel in enum array\n\nMarkus Armbruster (27):\n      tests/qmp-test: Add generic, basic test of query commands\n      qobject: Explain how QNum works, and why\n      qapi-schema: Document how generated documentation is ordered\n      qapi-schema: Introspection doc is in the wrong section, fix\n      qapi-schema: Rocker doc section contains unrelated stuff, fix\n      qapi-schema: Collect sockets stuff in qapi/sockets.json\n      qapi-schema: Collect run state stuff in qapi/run-state.json\n      qapi-schema: Collect char device stuff in qapi/char.json\n      qapi-schema: Collect net device stuff in qapi/net.json\n      qapi-schema: Collect UI stuff in qapi/ui.json\n      qapi-schema: Collect migration stuff in qapi/migration.json\n      qapi-schema: Collect transaction stuff in qapi/transaction.json\n      qapi-schema: Collect TPM stuff in qapi/tpm.json\n      qapi-schema: Move block events from event.json to block.json\n      qapi-schema: Fold event.json back into qapi-schema.json\n      qapi-schema: Make block-core.json self-contained\n      qapi-schema: Move queries from common.json to qapi-schema.json\n      qapi-schema: Improve section headings\n      qapi: Update qapi-code-gen.txt examples to match current code\n      qapi: Drop superfluous qapi_enum_parse() parameter max\n      tpm: Clean up model registration & lookup\n      crypto: Use qapi_enum_parse() in qcrypto_block_luks_name_lookup()\n      qapi: Use qapi_enum_parse() in input_type_enum()\n      qapi: Avoid unnecessary use of enum lookup table's sentinel\n      qapi: Generate FOO_str() macro for QAPI enum FOO\n      qapi: Mechanically convert FOO_lookup[...] to FOO_str(...)\n      qapi: Convert indirect uses of FOO_lookup[...] to qapi_enum_lookup()\n\n MAINTAINERS                                        |   16 +\n Makefile                                           |   15 +-\n backends/hostmem.c                                 |    4 +-\n block.c                                            |    4 +-\n block/backup.c                                     |    2 +-\n block/blkdebug.c                                   |   27 +-\n block/file-posix.c                                 |   20 +-\n block/file-win32.c                                 |    7 +-\n block/gluster.c                                    |   11 +-\n block/iscsi.c                                      |    2 +-\n block/nfs.c                                        |    2 +-\n block/parallels.c                                  |   17 +-\n block/qcow2.c                                      |   15 +-\n block/qed.c                                        |    2 +-\n block/quorum.c                                     |   27 +-\n block/rbd.c                                        |    2 +-\n block/sheepdog.c                                   |    2 +-\n blockdev.c                                         |    8 +-\n blockjob.c                                         |    6 +-\n chardev/char.c                                     |    4 +-\n crypto/block-luks.c                                |   38 +-\n crypto/block.c                                     |    4 +-\n crypto/cipher-afalg.c                              |    2 +-\n crypto/cipher-builtin.c                            |    8 +-\n crypto/cipher-gcrypt.c                             |    4 +-\n crypto/cipher-nettle.c                             |    8 +-\n crypto/hmac-gcrypt.c                               |    2 +-\n crypto/hmac-glib.c                                 |    2 +-\n crypto/hmac-nettle.c                               |    2 +-\n crypto/pbkdf-gcrypt.c                              |    2 +-\n crypto/pbkdf-nettle.c                              |    2 +-\n crypto/secret.c                                    |    2 +-\n crypto/tlscreds.c                                  |    2 +-\n docs/devel/qapi-code-gen.txt                       |   50 +-\n hmp.c                                              |  220 +-\n hw/block/fdc.c                                     |    6 +-\n hw/char/escc.c                                     |    2 +-\n hw/core/qdev-properties.c                          |   17 +-\n hw/input/virtio-input-hid.c                        |    4 +-\n include/hw/qdev-core.h                             |    2 +-\n include/qapi/qmp/qdict.h                           |    4 +-\n include/qapi/qmp/qlit.h                            |   54 +\n include/qapi/qmp/qnum.h                            |   21 +\n include/qapi/util.h                                |   10 +-\n include/qapi/visitor.h                             |    2 +-\n include/qom/object.h                               |    4 +-\n include/sysemu/tpm_backend.h                       |    4 +-\n migration/colo-failover.c                          |    4 +-\n migration/colo.c                                   |   14 +-\n migration/global_state.c                           |    6 +-\n migration/migration.c                              |    1 -\n monitor.c                                          |   20 +-\n net/filter.c                                       |    2 +-\n net/net.c                                          |    4 +-\n qapi-schema.json                                   | 3866 ++------------------\n qapi/block-core.json                               |    5 +-\n qapi/block.json                                    |   73 +-\n qapi/char.json                                     |  538 +++\n qapi/common.json                                   |  132 +-\n qapi/crypto.json                                   |    2 +-\n qapi/event.json                                    |  646 ----\n qapi/introspect.json                               |    6 +-\n qapi/migration.json                                | 1085 ++++++\n qapi/net.json                                      |  706 ++++\n qapi/qapi-util.c                                   |   16 +-\n qapi/qapi-visit-core.c                             |   34 +-\n qapi/qmp-dispatch.c                                |    2 +-\n qapi/run-state.json                                |  352 ++\n qapi/sockets.json                                  |  147 +\n qapi/tpm.json                                      |  137 +\n qapi/trace.json                                    |    2 +-\n qapi/transaction.json                              |  158 +\n qapi/ui.json                                       |  977 +++++\n qemu-img.c                                         |    6 +-\n qemu-nbd.c                                         |    4 +-\n qobject/Makefile.objs                              |    2 +-\n qobject/qlit.c                                     |   84 +\n qom/object.c                                       |   16 +-\n scripts/coccinelle/qobject.cocci                   |    3 +\n scripts/qapi-event.py                              |    1 +\n scripts/qapi-types.py                              |    4 +\n scripts/qapi-visit.py                              |    2 +-\n scripts/qapi.py                                    |   24 +-\n target/i386/cpu.c                                  |    4 +-\n tests/Makefile.include                             |    7 +-\n tests/check-qjson.c                                |  150 +-\n tests/check-qlit.c                                 |   74 +\n tests/check-qom-proplist.c                         |   14 +-\n .../qapi-schema/alternate-conflict-bool-string.err |    1 +\n .../alternate-conflict-bool-string.exit            |    1 +\n .../alternate-conflict-bool-string.json            |    4 +\n .../qapi-schema/alternate-conflict-bool-string.out |    0\n .../qapi-schema/alternate-conflict-num-string.err  |    1 +\n .../qapi-schema/alternate-conflict-num-string.exit |    1 +\n .../qapi-schema/alternate-conflict-num-string.json |    4 +\n .../qapi-schema/alternate-conflict-num-string.out  |    0\n tests/qmp-test.c                                   |  181 +-\n tests/test-qapi-util.c                             |   18 +-\n tests/test-qobject-input-visitor.c                 |    8 +-\n tests/test-qobject-output-visitor.c                |    2 +-\n tests/test-string-input-visitor.c                  |    4 +-\n tests/test-string-output-visitor.c                 |    4 +-\n tpm.c                                              |   81 +-\n ui/input-legacy.c                                  |    6 +-\n ui/input.c                                         |   12 +-\n ui/vnc.c                                           |    6 +-\n util/keyval.c                                      |    1 -\n vl.c                                               |    6 +-\n 108 files changed, 5360 insertions(+), 4982 deletions(-)\n create mode 100644 include/qapi/qmp/qlit.h\n create mode 100644 qapi/char.json\n delete mode 100644 qapi/event.json\n create mode 100644 qapi/migration.json\n create mode 100644 qapi/net.json\n create mode 100644 qapi/run-state.json\n create mode 100644 qapi/sockets.json\n create mode 100644 qapi/tpm.json\n create mode 100644 qapi/transaction.json\n create mode 100644 qapi/ui.json\n create mode 100644 qobject/qlit.c\n create mode 100644 tests/check-qlit.c\n create mode 100644 tests/qapi-schema/alternate-conflict-bool-string.err\n create mode 100644 tests/qapi-schema/alternate-conflict-bool-string.exit\n create mode 100644 tests/qapi-schema/alternate-conflict-bool-string.json\n create mode 100644 tests/qapi-schema/alternate-conflict-bool-string.out\n create mode 100644 tests/qapi-schema/alternate-conflict-num-string.err\n create mode 100644 tests/qapi-schema/alternate-conflict-num-string.exit\n create mode 100644 tests/qapi-schema/alternate-conflict-num-string.json\n create mode 100644 tests/qapi-schema/alternate-conflict-num-string.out",
    "diff": null,
    "prefixes": [
        "PULL",
        "v2",
        "00/47"
    ]
}