get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808852,
    "url": "http://patchwork.ozlabs.org/api/patches/808852/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170901180029.9527-3-hjl.tools@gmail.com/",
    "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": "<20170901180029.9527-3-hjl.tools@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-01T17:59:33",
    "name": "[02/58] Mark 3 *_internal functions with attribute_hidden [BZ #18822]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a0c369d279fff786cd4c574ebbe7ba5a597b7fa1",
    "submitter": {
        "id": 4387,
        "url": "http://patchwork.ozlabs.org/api/people/4387/?format=api",
        "name": "H.J. Lu",
        "email": "hjl.tools@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20170901180029.9527-3-hjl.tools@gmail.com/mbox/",
    "series": [
        {
            "id": 1088,
            "url": "http://patchwork.ozlabs.org/api/series/1088/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=1088",
            "date": "2017-09-01T18:00:21",
            "name": "Hide internal functions in libc.so",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1088/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808852/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808852/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-84049-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-84049-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=\"YHZgtOmr\"; 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 3xkRs24Sqdz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 04:01:58 +1000 (AEST)",
            "(qmail 84203 invoked by alias); 1 Sep 2017 18:00:47 -0000",
            "(qmail 83711 invoked by uid 89); 1 Sep 2017 18:00:43 -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:from:to:subject:date:message-id:in-reply-to\n\t:references; q=dns; s=default; b=JCLZrrBmFDSOwlnqEbjOiOJd1OBVJ/a\n\taPrHonEPk/l7kMSn4NFPfqpCdaqpJMzOEMvk1Mi25M04Lt2YecBjae07855wLWI1\n\tVQOJtIb0FEF2fvr1l9XOgV5F7pJip0jjTHsIBl8gQB2E0ELp/xxZdcWKat6Krgzc\n\thViTmehQr+Pg=",
        "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:from:to:subject:date:message-id:in-reply-to\n\t:references; s=default; bh=8g+Q6WtLKvfYoUvPuPvT+Mm+Jrw=; b=YHZgt\n\tOmrLKDvIesU7LMTTr19E96wflsL6eNQ8s6zl9+8k5Xd/4rY/huHcByY0W3qOpYeq\n\tMuHbwDNHL6x5qbkEVsNk6aoyIMVn1GDULClKLWHtLCIHaKJlftv8g8onntnuUtJg\n\tWvVjPJWgCdDSSTNltaLoUW9YD+8yXfMRHC3maA=",
        "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.2 required=5.0 tests=BAYES_00,\n\tFREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2,\n\tGIT_PATCH_3,\n\tSPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=H*m:gmail",
        "X-HELO": "mga02.intel.com",
        "X-ExtLoop1": "1",
        "From": "\"H.J. Lu\" <hjl.tools@gmail.com>",
        "To": "libc-alpha@sourceware.org",
        "Subject": "[PATCH 02/58] Mark 3 *_internal functions with attribute_hidden [BZ\n\t#18822]",
        "Date": "Fri,  1 Sep 2017 10:59:33 -0700",
        "Message-Id": "<20170901180029.9527-3-hjl.tools@gmail.com>",
        "In-Reply-To": "<20170901180029.9527-1-hjl.tools@gmail.com>",
        "References": "<20170901180029.9527-1-hjl.tools@gmail.com>"
    },
    "content": "Mark __ptsname_internal, __mktime_internal and __fopen_internal with\nattribute_hidden to allow direct access to them within libc.so and\nlibc.a without using GOT nor PLT.\n\n\t[BZ #18822]\n\t* include/stdlib.h (__ptsname_internal): Add attribute_hidden.\n\t* include/time.h (__mktime_internal): Likewise.\n\t* libio/iolibio.h (__fopen_internal): Likewise.\n---\n include/stdlib.h | 2 +-\n include/time.h   | 2 +-\n libio/iolibio.h  | 3 ++-\n 3 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/include/stdlib.h b/include/stdlib.h\nindex c4a6e6f737..2274790a2e 100644\n--- a/include/stdlib.h\n+++ b/include/stdlib.h\n@@ -78,7 +78,7 @@ extern char *__realpath (const char *__name, char *__resolved);\n extern int __ptsname_r (int __fd, char *__buf, size_t __buflen);\n # ifndef _ISOMAC\n extern int __ptsname_internal (int fd, char *buf, size_t buflen,\n-\t\t\t       struct stat64 *stp);\n+\t\t\t       struct stat64 *stp) attribute_hidden;\n # endif\n extern int __getpt (void);\n extern int __posix_openpt (int __oflag);\ndiff --git a/include/time.h b/include/time.h\nindex 9fb0e329a3..e8c07bbfea 100644\n--- a/include/time.h\n+++ b/include/time.h\n@@ -54,7 +54,7 @@ extern void __tz_compute (time_t timer, struct tm *tm, int use_localtime)\n extern time_t __mktime_internal (struct tm *__tp,\n \t\t\t\t struct tm *(*__func) (const time_t *,\n \t\t\t\t\t\t       struct tm *),\n-\t\t\t\t time_t *__offset);\n+\t\t\t\t time_t *__offset) attribute_hidden;\n extern struct tm *__localtime_r (const time_t *__timer,\n \t\t\t\t struct tm *__tp) attribute_hidden;\n \ndiff --git a/libio/iolibio.h b/libio/iolibio.h\nindex f215fcef01..754d8b0650 100644\n--- a/libio/iolibio.h\n+++ b/libio/iolibio.h\n@@ -23,7 +23,8 @@ extern _IO_FILE *_IO_fopen (const char*, const char*);\n extern _IO_FILE *_IO_old_fopen (const char*, const char*);\n extern _IO_FILE *_IO_new_fopen (const char*, const char*);\n extern _IO_FILE *_IO_fopen64 (const char*, const char*);\n-extern _IO_FILE *__fopen_internal (const char*, const char*, int);\n+extern _IO_FILE *__fopen_internal (const char*, const char*, int)\n+\tattribute_hidden;\n extern _IO_FILE *__fopen_maybe_mmap (_IO_FILE *) __THROW;\n extern int _IO_fprintf (_IO_FILE*, const char*, ...);\n extern int _IO_fputs (const char*, _IO_FILE*);\n",
    "prefixes": [
        "02/58"
    ]
}