get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 966522,
    "url": "http://patchwork.ozlabs.org/api/patches/966522/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/20180905154036.24318-1-yszhou4tech@gmail.com/",
    "project": {
        "id": 45,
        "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api",
        "name": "OpenWrt development",
        "link_name": "openwrt",
        "list_id": "openwrt-devel.lists.openwrt.org",
        "list_email": "openwrt-devel@lists.openwrt.org",
        "web_url": "http://openwrt.org/",
        "scm_url": "git://git.openwrt.org/openwrt.git",
        "webscm_url": "https://dev.openwrt.org/browser",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20180905154036.24318-1-yszhou4tech@gmail.com>",
    "list_archive_url": null,
    "date": "2018-09-05T15:40:35",
    "name": "[OpenWrt-Devel,1/2] scripts/metadata.pm: avoid adding dup names in provides list",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "33bcabb6cc819cdaf154c6b13c7b077c6662b85a",
    "submitter": {
        "id": 65295,
        "url": "http://patchwork.ozlabs.org/api/people/65295/?format=api",
        "name": "Yousong Zhou",
        "email": "yszhou4tech@gmail.com"
    },
    "delegate": {
        "id": 54624,
        "url": "http://patchwork.ozlabs.org/api/users/54624/?format=api",
        "username": "yousong",
        "first_name": "Yousong",
        "last_name": "Zhou",
        "email": "yszhou4tech@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/20180905154036.24318-1-yszhou4tech@gmail.com/mbox/",
    "series": [
        {
            "id": 64265,
            "url": "http://patchwork.ozlabs.org/api/series/64265/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openwrt/list/?series=64265",
            "date": "2018-09-05T15:40:36",
            "name": "[OpenWrt-Devel,1/2] scripts/metadata.pm: avoid adding dup names in provides list",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/64265/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/966522/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/966522/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.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=lists.openwrt.org\n\t(client-ip=198.137.202.133; helo=bombadil.infradead.org;\n\tenvelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=gmail.com",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"W6Nx0ng8\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"lUbO1/2J\"; dkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[198.137.202.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4257qq1sdSz9sCw\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  6 Sep 2018 02:06:47 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux))\n\tid 1fxZvY-0007Jw-C4; Wed, 05 Sep 2018 15:41:08 +0000",
            "from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441])\n\tby bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat\n\tLinux)) id 1fxZvU-0007Iw-BZ\n\tfor openwrt-devel@lists.openwrt.org; Wed, 05 Sep 2018 15:41:05 +0000",
            "by mail-pf1-x441.google.com with SMTP id u24-v6so3664670pfn.13\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tWed, 05 Sep 2018 08:40:53 -0700 (PDT)",
            "from titan.hq.cloud.yunionyun.com ([47.52.22.109])\n\tby smtp.gmail.com with ESMTPSA id\n\tl9-v6sm2987993pgg.79.2018.09.05.08.40.50\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 05 Sep 2018 08:40:51 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:\n\tDate:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=8tEdQ6MnI/3eaZB6REismFlp5MFUdJsBNxSgnbGO1JM=;\n\tb=W6Nx0ng81bfdha\n\tEq/7WFUOy9QQhnFLJu+ptBDq69nB1Eg5fi7Hp0RKs1opcgsNTM+elgYfMGhdzyyQl3KE4pRbd2Aij\n\tB4mV82m0OYozJGyEywemKqqfqKAw2iq1J/99Vrji+BleCLXPdqTUwpwvsrFasA6yp1fdssqa7pKyf\n\tTvW2ooqr1HOFFbBfx1RSjNTYd+z2GzFvHLvW4yDtKvi3rErUxB+wZDuFPgUc2o9oycp9eiElPK4pM\n\tF5BcuoE11kuKu8sn58wmDThiU+bASUdl8YyKjfOcEMrxs6kd3DNZsMNbpiEzP0m7D8XOHFvbaJJw+\n\thhH2WybG7l8jO5oWeSWA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=9SBEtfL5DokbPDtZYPadNE4j6w0vatfXGKxv7vczuSM=;\n\tb=lUbO1/2J3nycBR/wCFSK/lDMasjUO0OhwdnS6ZtcmwQjRiSi+26gvGhKfFcD9SEc4D\n\tog08rO7m2ibZcdio2TyYvvCoqLVIYPJC1umDDZnjVm7tR3aTO9kp963X2VY8UPJtytU0\n\tOkH73hxnmzGobBK5dOqmrmsEPxjm44ZdYBJ09tayZC5/TrGlt12t68t8lL6n0/5Q80zk\n\tht6qJ2mTczQbnRrb0TuLUMYYtSE2bvmdFiQAJDFM8WHcY9iKuAIlSWX7SCA/lUHDadJx\n\taPMIDQa6+tVIRXiHTvqg55Pp9o7L5MCYChzmW8H55qaRDJJnw+eGi5LMHC13sF7OJe3Y\n\tHD5g=="
        ],
        "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;\n\tbh=9SBEtfL5DokbPDtZYPadNE4j6w0vatfXGKxv7vczuSM=;\n\tb=R0AutrhNt3tQNDgvdor9/Vdl9cTzvZz/SI0cTzAfufgsXwLql0iGG9pUPkhwiTbOb7\n\txpOPnZAoO1l0ZluoMTXmJXNLeK84nHed3WaKyeQ7hzRMu7e6G4hGafE8aYSJcP7mG12O\n\tBoEPH1GqsDtrRewfbR2IIgzZBYs2seAoFRHz6HEkKsT991GtzZAiw9w3lq25TCjuh1Ou\n\te+SADfDSjtVC7N3ACB1aN+6XOOz8h2RMaYmQBkGbMNU6SD9LOTiG1xrtO2DhfcWn+muM\n\tsXQ1Vc1N1p1CGwkfkyYOkS5esjM5Bz3U2MmW5aDygESfouXuJ0y/26jhbSkg/hC7xcA1\n\tFeWA==",
        "X-Gm-Message-State": "APzg51ByfKqgdWX0/j93W0mP6QnkF2emGiwxfi7aUxmn3T/2xxfrtwpc\n\tL81G7ucGYyM9Q/UmIZCaX1Qyyvqk3+U=",
        "X-Google-Smtp-Source": "ANB0VdYIVv2lRnWRRK9vlNdF0UhagPoGT3s/DL2IpPiLxFOaKKwNUtOQgt6vMvnXzNaC0yPp07jspA==",
        "X-Received": "by 2002:a63:e001:: with SMTP id\n\te1-v6mr11190613pgh.380.1536162052707; \n\tWed, 05 Sep 2018 08:40:52 -0700 (PDT)",
        "From": "Yousong Zhou <yszhou4tech@gmail.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Wed,  5 Sep 2018 15:40:35 +0000",
        "Message-Id": "<20180905154036.24318-1-yszhou4tech@gmail.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20180905_084104_423338_0C6C4429 ",
        "X-CRM114-Status": "UNSURE (   7.95  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-0.1 (/)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-0.1 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org]\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (yszhou4tech[at]gmail.com)\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain",
        "Subject": "[OpenWrt-Devel] [PATCH 1/2] scripts/metadata.pm: avoid adding dup\n\tnames in provides list",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<openwrt-devel.lists.openwrt.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/openwrt-devel>, \n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/openwrt-devel/>",
        "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>",
        "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/openwrt-devel>, \n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>",
        "Cc": "Yousong Zhou <yszhou4tech@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>",
        "Errors-To": "openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org"
    },
    "content": "The need arises from building Open vSwitch kernel datapath modules, e.g.\n\n - kmod-openvswitch from Linux upstream\n - kmod-openvswitch-intree from openvswitch source code\n\nwhere both provides virtual package \"kmod-openvswitch\" for userspace\npackages to select and depend on\n\nSigned-off-by: Yousong Zhou <yszhou4tech@gmail.com>\n---\n scripts/metadata.pm | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/scripts/metadata.pm b/scripts/metadata.pm\nindex e05e400991..4a5464edc0 100644\n--- a/scripts/metadata.pm\n+++ b/scripts/metadata.pm\n@@ -250,6 +250,7 @@ sub parse_package_metadata($) {\n \t\t\tmy @vpkg = split /\\s+/, $1;\n \t\t\t@{$pkg->{provides}} = ($pkg->{name}, @vpkg);\n \t\t\tforeach my $vpkg (@vpkg) {\n+\t\t\t\tnext if ($vpkg eq $pkg->{name});\n \t\t\t\t$vpackage{$vpkg} or $vpackage{$vpkg} = [];\n \t\t\t\tpush @{$vpackage{$vpkg}}, $pkg;\n \t\t\t}\n",
    "prefixes": [
        "OpenWrt-Devel",
        "1/2"
    ]
}