get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806300,
    "url": "http://patchwork.ozlabs.org/api/patches/806300/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170827200124.rso63v6z5oyzpgcg@var.youpi.perso.aquilenet.fr/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170827200124.rso63v6z5oyzpgcg@var.youpi.perso.aquilenet.fr>",
    "list_archive_url": null,
    "date": "2017-08-27T20:01:24",
    "name": "[hurd,commited] Add system-specific sysmacros.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7dbe855ede59abdf9de514f6a3dee643d567d7b9",
    "submitter": {
        "id": 418,
        "url": "http://patchwork.ozlabs.org/api/people/418/?format=api",
        "name": "Samuel Thibault",
        "email": "samuel.thibault@ens-lyon.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20170827200124.rso63v6z5oyzpgcg@var.youpi.perso.aquilenet.fr/mbox/",
    "series": [
        {
            "id": 42,
            "url": "http://patchwork.ozlabs.org/api/series/42/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=42",
            "date": "2017-08-27T20:01:24",
            "name": "[hurd,commited] Add system-specific sysmacros.h",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/42/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806300/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806300/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-83763-incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-83763-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"PiEy2jMS\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\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 3xgQlQ1SCTz9s8V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 06:01:38 +1000 (AEST)",
            "(qmail 364 invoked by alias); 27 Aug 2017 20:01:31 -0000",
            "(qmail 130544 invoked by uid 89); 27 Aug 2017 20:01:30 -0000"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:subject:message-id:mime-version\n\t:content-type; q=dns; s=default; b=MVOXo9q+Vpz6OI7NCVVokGP9ZRs+i\n\tn0av/R1s5dMcq5Sr2hQ+qbeaVNKtnyHxc3z3kX+BQ/8Pkt90LlFnsQPjMfn7yCLr\n\t9jjVsW4JO1dvEtxVn1FAHsRWJaNklMKyMxbfSDJKf0hvlz4tvtqak+zGDtBtLVqc\n\tG6eIn3L7DjBxw0=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:subject:message-id:mime-version\n\t:content-type; s=default; bh=2R2PaHgMpxgquvY+MmAAHH4goRo=; b=PiE\n\ty2jMScvZH+LOUOWsQ+L3xtU4Z2IT18mSiNzT4VbaupYm9dD1EgNQSmuCNMqYJNNr\n\tr3wZXbcVgvzyGPv7vF36SJ/mu9BKJ0VMH+OSU1Nwb1cnvUjYKs1/kWb0hFMWV9dM\n\tvyPeaC4Br8HEIZylh9A2zSSBv2f7nBHvT3lbVe7E=",
        "Mailing-List": "contact libc-alpha-help@sourceware.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>",
        "List-Subscribe": "<mailto:libc-alpha-subscribe@sourceware.org>",
        "List-Archive": "<http://sourceware.org/ml/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>",
        "Sender": "libc-alpha-owner@sourceware.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS,\n\tSPF_NEUTRAL autolearn=ham version=3.3.2 spammy=samuel, Samuel,\n\tdigit",
        "X-HELO": "hera.aquilenet.fr",
        "Date": "Sun, 27 Aug 2017 22:01:24 +0200",
        "From": "Samuel Thibault <samuel.thibault@ens-lyon.org>",
        "To": "libc-alpha@sourceware.org",
        "Subject": "[hurd,commited] Add system-specific sysmacros.h",
        "Message-ID": "<20170827200124.rso63v6z5oyzpgcg@var.youpi.perso.aquilenet.fr>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "User-Agent": "NeoMutt/20170113 (1.7.2)"
    },
    "content": "* sysdeps/mach/hurd/bits/sysmacros.h: New file.",
    "diff": "diff --git a/ChangeLog b/ChangeLog\nindex bc1cf94dc3..1b0f15573a 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -1,3 +1,7 @@\n+2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>\n+\n+\t* sysdeps/mach/hurd/bits/sysmacros.h: New file.\n+\n 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>\n \n \t* sysdeps/x86/cpu-features.h [__ASSEMBLER__]\ndiff --git a/sysdeps/mach/hurd/bits/sysmacros.h b/sysdeps/mach/hurd/bits/sysmacros.h\nnew file mode 100644\nindex 0000000000..3fc68f8564\n--- /dev/null\n+++ b/sysdeps/mach/hurd/bits/sysmacros.h\n@@ -0,0 +1,60 @@\n+/* Definitions of macros to access `dev_t' values.  Hurd version.\n+   Copyright (C) 1996-2017 Free Software Foundation, Inc.\n+   This file is part of the GNU C Library.\n+\n+   The GNU C Library is free software; you can redistribute it and/or\n+   modify it under the terms of the GNU Lesser General Public\n+   License as published by the Free Software Foundation; either\n+   version 2.1 of the License, or (at your option) any later version.\n+\n+   The GNU C Library is distributed in the hope that it will be useful,\n+   but WITHOUT ANY WARRANTY; without even the implied warranty of\n+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+   Lesser General Public License for more details.\n+\n+   You should have received a copy of the GNU Lesser General Public\n+   License along with the GNU C Library; if not, see\n+   <http://www.gnu.org/licenses/>.  */\n+\n+#ifndef _BITS_SYSMACROS_H\n+#define _BITS_SYSMACROS_H 1\n+\n+#ifndef _SYS_SYSMACROS_H\n+# error \"Never include <bits/sysmacros.h> directly; use <sys/sysmacros.h> instead.\"\n+#endif\n+\n+/* The Hurd version of dev_t in glibc is a 32-bit quantity, with 8-bit\n+   major and 24-bit minor numbers.  The encoding is mmmmMMmm, where M is a\n+   hex digit of the major number and m is a hex digit of the minor number.  */\n+\n+#define __SYSMACROS_DECLARE_MAJOR(DECL_TEMPL)                   \\\n+  DECL_TEMPL(unsigned int, major, (__dev_t __dev))\n+\n+#define __SYSMACROS_DEFINE_MAJOR(DECL_TEMPL)                    \\\n+  __SYSMACROS_DECLARE_MAJOR (DECL_TEMPL)                        \\\n+  {                                                             \\\n+    return ((__dev & (__dev_t) 0x0000ff00u) >> 8);              \\\n+  }\n+\n+#define __SYSMACROS_DECLARE_MINOR(DECL_TEMPL)                   \\\n+  DECL_TEMPL(unsigned int, minor, (__dev_t __dev))\n+\n+#define __SYSMACROS_DEFINE_MINOR(DECL_TEMPL)                    \\\n+  __SYSMACROS_DECLARE_MINOR (DECL_TEMPL)                        \\\n+  {                                                             \\\n+    return (__dev & (__dev_t) 0xffff00ff);                      \\\n+  }\n+\n+#define __SYSMACROS_DECLARE_MAKEDEV(DECL_TEMPL)                 \\\n+  DECL_TEMPL(__dev_t, makedev, (unsigned int __major, unsigned int __minor))\n+\n+#define __SYSMACROS_DEFINE_MAKEDEV(DECL_TEMPL)                  \\\n+  __SYSMACROS_DECLARE_MAKEDEV (DECL_TEMPL)                      \\\n+  {                                                             \\\n+    __dev_t __dev;                                              \\\n+    __dev  = (((__dev_t) (__major & 0x000000ffu)) << 8);        \\\n+    __dev |= (((__dev_t) (__minor & 0xffff00ffu)) << 0);        \\\n+    return __dev;                                               \\\n+  }\n+\n+#endif /* bits/sysmacros.h */\n",
    "prefixes": [
        "hurd",
        "commited"
    ]
}