get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814732,
    "url": "http://patchwork.ozlabs.org/api/patches/814732/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170917225927.117917-14-sjg@chromium.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170917225927.117917-14-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-09-17T22:59:24",
    "name": "[U-Boot,13/16] efi: sandbox: Add relocation constants",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "661c363d786fd98caebfaab4d08f26b5e50f0ac0",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3400,
        "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api",
        "username": "agraf",
        "first_name": "Alexander",
        "last_name": "Graf",
        "email": "agraf@suse.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170917225927.117917-14-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 3549,
            "url": "http://patchwork.ozlabs.org/api/series/3549/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3549",
            "date": "2017-09-17T22:59:11",
            "name": "efi: Enable basic sandbox support for EFI loader",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3549/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814732/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814732/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"eek0Qbdf\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwRz75dQSz9ryk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 10:41:55 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 8D91DC21EC3; Mon, 18 Sep 2017 00:41:54 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 17593C21F03;\n\tSun, 17 Sep 2017 23:02:11 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 24AECC21EB1; Sun, 17 Sep 2017 23:02:05 +0000 (UTC)",
            "from mail-io0-f182.google.com (mail-io0-f182.google.com\n\t[209.85.223.182])\n\tby lists.denx.de (Postfix) with ESMTPS id 7F96AC21EB9\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 22:59:44 +0000 (UTC)",
            "by mail-io0-f182.google.com with SMTP id z187so14796812ioz.12\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 15:59:44 -0700 (PDT)",
            "from kiwi.bld.corp.google.com ([2620:0:10f2:0:50ee:364d:633f:bd4e])\n\tby smtp.gmail.com with ESMTPSA id\n\tt205sm6734923oig.53.2017.09.17.15.59.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 17 Sep 2017 15:59:42 -0700 (PDT)",
            "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid AC22B14052F; Sun, 17 Sep 2017 16:59:39 -0600 (MDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=MDN51uQwWhHFkZteAD3LbKDY7At1rI8CmO9p6XBfWl0=;\n\tb=eek0Qbdf6ny/TQesHtp8I+E+qOpCqm9RynMPbkBU0c47lLsycTekX4ULKqEU4Z8PKz\n\tpio44B52EbMwh0C4wKn+kuJZVWHLmS4miUFvgnlkwXxa7XKeg2eaYa1VRAbF3q2L1y9u\n\tLiPMbx8NzghBxKRkjXQgFmncFnQ4zVEl4uObmzX8epJ9tyUw259DAHDAO4wD9e7PDHNA\n\teB8xYIkhXTpvxdBGCknRpdGatTHHHsq9ItHKDzG9j+b4lIJEVUrN1KHIhCKZqJaGdg3a\n\t9Gi1enDj/jPJVHWBbmlHN9gfOdeBxk3kTINnbuftbnLjIELEqH4I+wsh8TZs4SJG+VSG\n\tAyeA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=MDN51uQwWhHFkZteAD3LbKDY7At1rI8CmO9p6XBfWl0=;\n\tb=Pxq81747fsoWpWOnIfCqaBi8i533nQaRvEwbW9itujhzH2+F7CXjexcfMhkfZWGtA3\n\tizfGiYd0+FzeeO0+qxj8iwjnvMuKBIjCduLY6TMNNOBnKDjQRCXyOJGzLRUpSuHufqJo\n\tcexYmDLsVQvf65QaTApSpG4PlIq16bt56e1MLxve/6BIA6qpVVbR66sawEKxTFBDAW/j\n\t+4ONGi0b9z5IyFYxT02pLjPQ2g+MNkW51YVG5WP7qyUjsM1EB3tOZghhJUL2MumpVgmG\n\ttUIsED3ETfcTt4aCNP6WzLP2TmzyRbNQxwuqHczjujNn1gQVUT3U2GUvyi+cPE+9K6DS\n\tunPw==",
        "X-Gm-Message-State": "AHPjjUic1og0vXTQm/rXka56cS7IXN0dw2APfX1sK4rxlE8/yDFs3JWN\n\tNh9uWxr+8AxxREWk",
        "X-Google-Smtp-Source": "AOwi7QA4KQbastmJ1TZ1mkoAZxobb5+885NQ/Gwz5uusVCg7PkdHR2RuRsrp92Gkfkl6TtyBi6qsSg==",
        "X-Received": "by 10.202.94.69 with SMTP id s66mr8097361oib.91.1505689183217;\n\tSun, 17 Sep 2017 15:59:43 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sun, 17 Sep 2017 16:59:24 -0600",
        "Message-Id": "<20170917225927.117917-14-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.1.690.gbb1197296e-goog",
        "In-Reply-To": "<20170917225927.117917-1-sjg@chromium.org>",
        "References": "<20170917225927.117917-1-sjg@chromium.org>",
        "Cc": "Andy Shevchenko <andriy.shevchenko@linux.intel.com>,\n\tHeinrich Schuchardt <xypron.glpk@gmx.de>",
        "Subject": "[U-Boot] [PATCH 13/16] efi: sandbox: Add relocation constants",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Add these so that we can build the EFI loader for sandbox. The values are\nfor x86_64 so potentially bogus. But we don't support relocation within\nsandbox anyway.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n lib/efi_loader/efi_runtime.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c\nindex ad7f3754bd..8ad1d2fc99 100644\n--- a/lib/efi_loader/efi_runtime.c\n+++ b/lib/efi_loader/efi_runtime.c\n@@ -48,6 +48,9 @@ static efi_status_t __efi_runtime EFIAPI efi_invalid_parameter(void);\n #include <asm/elf.h>\n #define R_RELATIVE\tR_386_RELATIVE\n #define R_MASK\t\t0xffULL\n+#elif defined(CONFIG_SANDBOX)\n+#define R_RELATIVE\t8\n+#define R_MASK\t\t0xffffffffULL\n #else\n #error Need to add relocation awareness\n #endif\n",
    "prefixes": [
        "U-Boot",
        "13/16"
    ]
}