get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810919,
    "url": "http://patchwork.ozlabs.org/api/patches/810919/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/swupdate/patch/1504775341-13994-1-git-send-email-maciej.pijanowski@3mdeb.com/",
    "project": {
        "id": 58,
        "url": "http://patchwork.ozlabs.org/api/projects/58/?format=api",
        "name": "swupdate development",
        "link_name": "swupdate",
        "list_id": "swupdate.googlegroups.com",
        "list_email": "swupdate@googlegroups.com",
        "web_url": "https://github.com/sbabic/swupdate",
        "scm_url": "git://github.com/sbabic/swupdate",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504775341-13994-1-git-send-email-maciej.pijanowski@3mdeb.com>",
    "list_archive_url": null,
    "date": "2017-09-07T09:09:01",
    "name": "[meta-swupdate] README: update signing documentation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e15e5a0ea3b0cedc4f857fbc4e9108a980dc028b",
    "submitter": {
        "id": 72175,
        "url": "http://patchwork.ozlabs.org/api/people/72175/?format=api",
        "name": "Maciej Pijanowski",
        "email": "maciej.pijanowski@3mdeb.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/swupdate/patch/1504775341-13994-1-git-send-email-maciej.pijanowski@3mdeb.com/mbox/",
    "series": [
        {
            "id": 1953,
            "url": "http://patchwork.ozlabs.org/api/series/1953/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/swupdate/list/?series=1953",
            "date": "2017-09-07T09:09:01",
            "name": "[meta-swupdate] README: update signing documentation",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1953/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810919/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810919/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<swupdate+bncBDIL3GP4WUMRBCUZYTGQKGQE7UFX65A@googlegroups.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:400c:c09::23d;\n\thelo=mail-wm0-x23d.google.com;\n\tenvelope-from=swupdate+bncbdil3gp4wumrbcuzytgqkgqe7ufx65a@googlegroups.com;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"KTsVWNpG\"; dkim-atps=neutral"
        ],
        "Received": [
            "from mail-wm0-x23d.google.com (mail-wm0-x23d.google.com\n\t[IPv6:2a00:1450:400c:c09::23d])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnvkk0FnMz9sNV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 19:08:29 +1000 (AEST)",
            "by mail-wm0-x23d.google.com with SMTP id 132sf62718wmi.19\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 07 Sep 2017 02:08:29 -0700 (PDT)",
            "by 10.28.178.145 with SMTP id b139ls28651wmf.13.gmail; Thu, 07 Sep\n\t2017 02:08:26 -0700 (PDT)",
            "from cloudserver096301.home.net.pl (cloudserver096301.home.net.pl.\n\t[79.96.179.35]) by gmr-mx.google.com with ESMTPS id\n\tl133si8178wmb.3.2017.09.07.02.08.26 for <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 07 Sep 2017 02:08:26 -0700 (PDT)",
            "from 81-95-197-197.metrolink.pl (81.95.197.197) (HELO\n\tlocalhost.localdomain)\n\tby serwer1539010.home.pl (79.96.179.35) with SMTP (IdeaSmtpServer\n\t0.82) id 61acc45e3b424813; Thu, 7 Sep 2017 11:08:24 +0200"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; t=1504775307; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=PY7FUpeGDpVuqbOuvd6g6xbjjHic67/zPaS5FQssDkW7A408fe7KVwkU1waZXAkSW4\n\tIBzEr1mGcJEs8GSyV85DiBkyCxsrDFM3wQRHEtGNv+3SbdARnVM48ZGx9Km4onf5wkXO\n\t+37LWDAGebk1P/PtLAyx6fUlFATgMlbZtuYxVAFDzEVPervkXDPkNQfj9SHIOO/FIJLR\n\t0tDrPLYqx0nS/B6bAnUUPJvNEJfqluyMT7C4OBJpuWhYbGug0mCqpdIfAT6GQnVKuLkd\n\thAxgaF6crFa22Lsd0ss1Y6Iz+y4SmyEzWSDAKqg9C7xyHoex5RyoWfrEKJNNpedeuLyn\n\t5bOw==",
            "i=1; a=rsa-sha256; t=1504775306; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=Tw2dJAQCIhpwnnFi65VZ1yyMmQ3ofGelYLvDVL+r3we0JmIUcMvg44lNHQ5JxrV8Zt\n\tDwyBUfLvhHUrf7oAKzA0/o7Hew0M+AvTNPxIYCyAyLz2Op10ngXT2CKnyctVQcTdbO3g\n\tsiYSkURvs8Yz4yz4vZ8E8cE8Q7WRDFO2QuooHNo3UtT52LgmBZpGMYF2h8oxmws+GmbY\n\twYUJVlA7zafE4JE78Pe/rGScFqm6er++gmMM95lHKSpNmwNz1qUh70V0/+/UidrFev5J\n\t/JkEI3O4vTFQ+rEBxBEMLidm9Ol0DUuXoNTdZAb/gn3NNtfmFmtUGVMR6lKbEJV8qpjD\n\tyacA=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:message-id:date:subject:cc:to:from\n\t:arc-authentication-results:arc-message-signature:mime-version\n\t:sender:dkim-signature:arc-authentication-results;\n\tbh=b564b7p9fhEeCu3TwcsAhhM7pC0NxQK4u124jHWePVo=;\n\tb=xyXTsF6hPO0CoMB+juXkRqKRScMB9cHE+5vTFOerjLHEtrOi5nfD90zdbYMcHKappz\n\tTlmiGuR8Obbbd0/J2oZBol+pP+1k7PJs7ul7WWuSnYYkMmJd/wVrTxYXqcTuSeFnAfLr\n\tAYRHT5SPWkjsVYeSkCDqbQZIme3tpOq87HVLvcX3RSvF1XzRy7kXdcb2p51P/yUd1qpR\n\tkSOFSHQXZIVTlq3ee+dv43zybNoR0VCHm292Kpq6FjudKJvyJ7pgeOM8hwDx5Ok6K31S\n\thme+2TjxqIUK5S7mwqqgOAQrEcrKAsmsPorB+BrwwvW7FINT1Z6sZe1MvgEPYx+7xtBm\n\tM3QA==",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=message-id:date:subject:cc:to:from:arc-authentication-results;\n\tbh=EDIThd/1aFs0n0FlnqlFGPbWXyyKNlcALANOKiuGyjc=;\n\tb=TmE+ytMUFO+BIyGTXL1Bk12nsTaJz4QI9rdov0QqcwAKtPkLc2lEZ8gP4OlLNpg8S7\n\tUFvyjaK8O+xbttefcQh/thYBPb8CRFcye7/dBweSOa2HsjmC4bUTRo9cTgd7d/QrUcIm\n\t7OqhVXRqQBkA8lIZ/VcbE10KxaFAPpUy5ciQH8wHazCWAkfXbTRJABr35AO7p/7pqLZ+\n\tSfkaFmXQ3sQpysNb4gowPCQM4B9ymw8MWfYQTkI/KuQS2kd2bE6a8XRN1HsnMEu1jLd/\n\tneBQBd+2L7lbcWDSPkKEbGpXD1bF23grbWPXcFWI3Jp/dJ+MymG2lUan7ho7eyPUAMmD\n\tSCtw=="
        ],
        "ARC-Authentication-Results": [
            "i=2; gmr-mx.google.com;\n\tspf=neutral (google.com: 79.96.179.35 is neither permitted nor denied\n\tby best guess record for domain of\n\tmaciej.pijanowski@3mdeb.com)\n\tsmtp.mailfrom=maciej.pijanowski@3mdeb.com",
            "i=1; gmr-mx.google.com;\n\tspf=neutral (google.com: 79.96.179.35 is neither permitted nor denied\n\tby best guess record for domain of\n\tmaciej.pijanowski@3mdeb.com)\n\tsmtp.mailfrom=maciej.pijanowski@3mdeb.com"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:mime-version:from:to:cc:subject:date:message-id\n\t:x-original-sender:x-original-authentication-results:precedence\n\t:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=b564b7p9fhEeCu3TwcsAhhM7pC0NxQK4u124jHWePVo=;\n\tb=KTsVWNpGgmBh5G6sIkRDOkta6IFPFufF4RcwHbdmS2Gbufp+SgXCg5aVUrKvsDpuMm\n\tyg7gt1lpEXjdhyvVP6r1IHkYkLkW6aFaOxUuAbnQ4y/+BMr3RXrMaEClX1alklZSAP2F\n\tDmFv2aBPvxkh0lkRAzanmooOURJUCZiXDN3fcsaUvr9AXcb4yw9ohGR34qg6amaZMVkY\n\tHo3qJ8b0dffAviDLhcoNjiyL7Ms1fRHwIVzROuJV2e5PYFbrx4BS46EiowgHzR9cO/LC\n\tIOCD2n7iGWEZcQ5ZQJhzrXQqkRi3SfkBUtek6ga1Wl+KxeLlDk983k552LbwWVFiCfH4\n\ttyfA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:mime-version:from:to:cc:subject:date\n\t:message-id:x-original-sender:x-original-authentication-results\n\t:precedence:mailing-list:list-id:x-spam-checked-in-group:list-post\n\t:list-help:list-archive:list-subscribe:list-unsubscribe;\n\tbh=b564b7p9fhEeCu3TwcsAhhM7pC0NxQK4u124jHWePVo=;\n\tb=Se0/sUPq3ib0lHv/GH6Wo1LiOhUsgzVmn4s0sWDIeI7ShadxG4STJuNP6VLn4gy5mB\n\tGPAAxt+0/q8bXCkI/uBJSn4khrvOx/yCUJqwDZMVeAV+UeMjMukMFlB36NJR0qyMIWG7\n\tEz8h8T/g1etkdAT3VEk04VqqX416IkXRDA/3z6kKpeaSdJN53jJsuVgh66u1sus07gB+\n\ttDhU0FVNgfuwWAiwRMphUVzH1Gv5oCPpp2HjkiyQKivqPoTxXSsVB8I8vzWP5ikFik5Z\n\tssA9texmesmR4XUT9jGbSfa8bz+E9nooWR94DIhU4HAOjHUgRZyWVthSz5DjGd32NPVc\n\tNoig==",
        "Sender": "swupdate@googlegroups.com",
        "X-Gm-Message-State": "AHPjjUh+6px+CKpMgVIasr+R8Hr3BrE+yxbVJfZTLCDTrRInx8Pd4WVe\n\tcdgg3b+fTRoxqw==",
        "X-Google-Smtp-Source": "ADKCNb7HYHFLDU/ZjNZNzet2pUtvQotoVkz8SpDQDjYAHw8xpNLCX3Mc3rguZbiSrFfdjrhcDnqnFw==",
        "X-Received": [
            "by 10.28.72.135 with SMTP id v129mr321wma.22.1504775307015;\n\tThu, 07 Sep 2017 02:08:27 -0700 (PDT)",
            "by 10.28.6.76 with SMTP id 73mr16440wmg.26.1504775306596;\n\tThu, 07 Sep 2017 02:08:26 -0700 (PDT)"
        ],
        "MIME-Version": "1.0",
        "X-BeenThere": "swupdate@googlegroups.com",
        "Received-SPF": "neutral (google.com: 79.96.179.35 is neither permitted nor\n\tdenied by best guess record for domain of\n\tmaciej.pijanowski@3mdeb.com) client-ip=79.96.179.35; ",
        "From": "Maciej Pijanowski <maciej.pijanowski@3mdeb.com>",
        "To": "swupdate@googlegroups.com",
        "Cc": "piotr.krol@3mdeb.com, diego.rondini@kynetics.com,\n\tMaciej Pijanowski <maciej.pijanowski@3mdeb.com>",
        "Subject": "[swupdate] [meta-swupdate][PATCH] README: update signing\n\tdocumentation",
        "Date": "Thu,  7 Sep 2017 11:09:01 +0200",
        "Message-Id": "<1504775341-13994-1-git-send-email-maciej.pijanowski@3mdeb.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "X-Original-Sender": "maciej.pijanowski@3mdeb.com",
        "X-Original-Authentication-Results": "gmr-mx.google.com;       spf=neutral\n\t(google.com: 79.96.179.35 is neither permitted nor denied by best\n\tguess\n\trecord for domain of maciej.pijanowski@3mdeb.com)\n\tsmtp.mailfrom=maciej.pijanowski@3mdeb.com",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Precedence": "list",
        "Mailing-list": "list swupdate@googlegroups.com;\n\tcontact swupdate+owners@googlegroups.com",
        "List-ID": "<swupdate.googlegroups.com>",
        "X-Spam-Checked-In-Group": "swupdate@googlegroups.com",
        "X-Google-Group-Id": "605343134186",
        "List-Post": "<https://groups.google.com/group/swupdate/post>,\n\t<mailto:swupdate@googlegroups.com>",
        "List-Help": "<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>",
        "List-Archive": "<https://groups.google.com/group/swupdate",
        "List-Subscribe": "<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>",
        "List-Unsubscribe": "<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>"
    },
    "content": "Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>\n---\n README | 34 +++++++++++++++++++++++++---------\n 1 file changed, 25 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/README b/README\nindex 2e50a72aad7f..793b38b1923f 100644\n--- a/README\n+++ b/README\n@@ -21,18 +21,34 @@ image filename) are replaced with the sha256 hash of the image.\n SWU image signing\n ------------\n \n-To enable signing:\n-    Set SWUPDATE_SIGNING = \"1\"\n-    Set SWUPDATE_PRIVATE_KEY to the full path of private key file\n+There are 3 signing mechanism supported by meta-swupdate at the moment:\n \n-sw-description is signed with the private key and the signature is writen to\n-sw-description.sig which is included in the SWU file.\n+1. RSA signing:\n \n-Encrypted private keys are not currently supported since a secure \n-mechanism must exist to provide the passphrase.\n+  * Set variable: `SWUPDATE_SIGNING = \"RSA\"`\n+\n+  * Set `SWUPDATE_PRIVATE_KEY` to the full path of private key file\n+\n+2. CMS signing:\n+\n+  * Set variable: `SWUPDATE_SIGNING = \"CMS\"`\n+\n+  * Set `SWUPDATE_CMS_CERT` to the full path of certificate file\n+\n+  * Set `SWUPDATE_CMS_KEY ` to the full path of private key file\n \n-If SWUPDATE_SIGN_TOOL is set, SWUPDATE_PRIVATE_KEY is ignored and the string\n-contained in SWUPDATE_SIGN_TOOL is executed to perform the signing.\n+3. Custom signing tool:\n+\n+  * Set variable: `SWUPDATE_SIGNING = \"CUSTOM\"`\n+\n+  * Set variable `SWUPDATE_SIGN_TOOL' to custom string that needs to be\n+    executed in order to perform the signing\n+\n+sw-description is signed and the signature is written to sw-description.sig\n+which is included in the SWU file.\n+\n+Encrypted private keys are not currently supported since a secure\n+mechanism must exist to provide the passphrase.\n \n Maintainer\n ----------\n",
    "prefixes": [
        "meta-swupdate"
    ]
}