get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 598292,
    "url": "http://patchwork.ozlabs.org/api/patches/598292/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1458128721-14883-1-git-send-email-niranjan.reddy@rockwellcollins.com/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1458128721-14883-1-git-send-email-niranjan.reddy@rockwellcollins.com>",
    "list_archive_url": null,
    "date": "2016-03-16T11:45:21",
    "name": "[Selinux,v11] refpolicy-contrib: new package",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "8a40b30238b644f3ecccc9e874f8100e4f26a5ab",
    "submitter": {
        "id": 68266,
        "url": "http://patchwork.ozlabs.org/api/people/68266/?format=api",
        "name": "niranjan.reddy",
        "email": "niranjan.reddy@rockwellcollins.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1458128721-14883-1-git-send-email-niranjan.reddy@rockwellcollins.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/598292/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/598292/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id 3qQ8n644Mvz9sC3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 16 Mar 2016 22:45:30 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B3D92896C0;\n\tWed, 16 Mar 2016 11:45:29 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id yWgNdfyocLFE; Wed, 16 Mar 2016 11:45:27 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 95EF889692;\n\tWed, 16 Mar 2016 11:45:27 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 9346C1C1E91\n\tfor <buildroot@lists.busybox.net>;\n\tWed, 16 Mar 2016 11:45:26 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 8F53E8BE9C\n\tfor <buildroot@lists.busybox.net>;\n\tWed, 16 Mar 2016 11:45:26 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Kth7hkEX+jxH for <buildroot@lists.busybox.net>;\n\tWed, 16 Mar 2016 11:45:25 +0000 (UTC)",
            "from ch3vs02.rockwellcollins.com (ch3vs02.rockwellcollins.com\n\t[205.175.226.29])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 8639A8BE7E\n\tfor <buildroot@busybox.net>; Wed, 16 Mar 2016 11:45:25 +0000 (UTC)",
            "from ofwch3n02.rockwellcollins.com (HELO\n\tciulimr01.rockwellcollins.com) ([205.175.226.14])\n\tby ch3vs02.rockwellcollins.com with ESMTP; 16 Mar 2016 06:45:25 -0500"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Received": "from rclinux-VirtualBox.rockwellcollins.com\n\t(inp00852.rockwellcollins.com [131.199.137.48])\n\tby ciulimr01.rockwellcollins.com (Postfix) with ESMTP id D4E1260105; \n\tWed, 16 Mar 2016 06:45:23 -0500 (CDT)",
        "From": "Niranjan Reddy <niranjan.reddy@rockwellcollins.com>",
        "To": "thomas.petazzoni@free-electrons.com,\n\tbuildroot@busybox.net",
        "Date": "Wed, 16 Mar 2016 17:15:21 +0530",
        "Message-Id": "<1458128721-14883-1-git-send-email-niranjan.reddy@rockwellcollins.com>",
        "X-Mailer": "git-send-email 2.5.0",
        "Subject": "[Buildroot] [ PATCH Selinux v11] refpolicy-contrib: new package",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "The patch is for updating selinux reference policy latest\ncontribution changes.\n\n---\nChanges v10 -> v11:\n  - Seperated refpolicy-contrib package from refpolicy patch and created\n    this patch (suggested by Thomas).\n\nChanged v1 -> v10:\n  - Did not exist\n---\n package/Config.in                              |  1 +\n package/refpolicy-contrib/Config.in            | 19 +++++++++++++++++++\n package/refpolicy-contrib/refpolicy-contrib.mk | 15 +++++++++++++++\n 3 files changed, 35 insertions(+)\n create mode 100644 package/refpolicy-contrib/Config.in\n create mode 100644 package/refpolicy-contrib/refpolicy-contrib.mk",
    "diff": "diff --git a/package/Config.in b/package/Config.in\nindex ec53cfe..d49f83e 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -1513,6 +1513,7 @@ endmenu\n menu \"Security\"\n \tsource \"package/policycoreutils/Config.in\"\n \tsource \"package/refpolicy/Config.in\"\n+\tsource \"package/refpolicy-contrib/Config.in\"\n \tsource \"package/setools/Config.in\"\n endmenu\n \ndiff --git a/package/refpolicy-contrib/Config.in b/package/refpolicy-contrib/Config.in\nnew file mode 100644\nindex 0000000..b518248\n--- /dev/null\n+++ b/package/refpolicy-contrib/Config.in\n@@ -0,0 +1,19 @@\n+if BR2_PACKAGE_REFPOLICY_CUSTOM_GIT\n+\n+comment \"A refpolicy contrib repository is required if using a refpolicy repo. (Contrib is a Git submodule of refpolicy)\"\n+\n+config BR2_PACKAGE_REFPOLICY_CONTRIB\n+\tbool \"refpolicy-contrib\"\n+\thelp\n+\t  A Git submodule of the refpolicy package.\n+\n+config BR2_PACKAGE_REFPOLICY_CONTRIB_CUSTOM_REPO_URL\n+\tstring \"URL of custom contrib submodule repository\"\n+\n+config BR2_PACKAGE_REFPOLICY_CONTRIB_CUSTOM_REPO_VERSION\n+\tstring \"Custom contrib submodule repository version\"\n+\thelp\n+\t  Revision to use in the typical format used by Git\n+\t  e.g. a SHA id, a tag, branch, ..\n+\n+endif\ndiff --git a/package/refpolicy-contrib/refpolicy-contrib.mk b/package/refpolicy-contrib/refpolicy-contrib.mk\nnew file mode 100644\nindex 0000000..7bfcfa1\n--- /dev/null\n+++ b/package/refpolicy-contrib/refpolicy-contrib.mk\n@@ -0,0 +1,15 @@\n+################################################################################\n+#\n+# refpolicy-contrib\n+#\n+################################################################################\n+\n+REFPOLICY_CONTRIB_SITE = $(call qstrip,$(BR2_PACKAGE_REFPOLICY_CONTRIB_CUSTOM_REPO_URL))\n+REFPOLICY_CONTRIB_VERSION = $(call qstrip,$(BR2_PACKAGE_REFPOLICY_CONTRIB_CUSTOM_REPO_VERSION))\n+REFPOLICY_CONTRIB_SITE_METHOD = git\n+\n+# Inherits license from refpolicy as normally this is a submodule\n+REFPOLICY_CONTRIB_LICENSE = GPLv2\n+\n+# If refpolicy is from release archive, this contrib content is part of it.\n+$(eval $(generic-package))\n",
    "prefixes": [
        "Selinux",
        "v11"
    ]
}