get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809250,
    "url": "http://patchwork.ozlabs.org/api/patches/809250/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openbsc/patch/20170903102008.13414-1-axilirator@gmail.com/",
    "project": {
        "id": 39,
        "url": "http://patchwork.ozlabs.org/api/projects/39/?format=api",
        "name": "OpenBSC development",
        "link_name": "openbsc",
        "list_id": "openbsc.lists.osmocom.org",
        "list_email": "openbsc@lists.osmocom.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170903102008.13414-1-axilirator@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-03T10:20:08",
    "name": "Fix BENCHMARK_STOP call for AMR and FR",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "543b6bd04b9c2c5f490ec3f759e6798a019c7973",
    "submitter": {
        "id": 67986,
        "url": "http://patchwork.ozlabs.org/api/people/67986/?format=api",
        "name": "Vadim Yanitskiy",
        "email": "axilirator@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openbsc/patch/20170903102008.13414-1-axilirator@gmail.com/mbox/",
    "series": [
        {
            "id": 1208,
            "url": "http://patchwork.ozlabs.org/api/series/1208/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openbsc/list/?series=1208",
            "date": "2017-09-03T10:20:08",
            "name": "Fix BENCHMARK_STOP call for AMR and FR",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1208/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809250/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809250/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openbsc-bounces@lists.osmocom.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "openbsc@lists.osmocom.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "openbsc@lists.osmocom.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=lists.osmocom.org\n\t(client-ip=144.76.43.76; helo=lists.osmocom.org;\n\tenvelope-from=openbsc-bounces@lists.osmocom.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"uVWAB1UV\"; dkim-atps=neutral",
            "lists.osmocom.org; dmarc=none header.from=gmail.com",
            "lists.osmocom.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com header.b=uVWAB1UV",
            "lists.osmocom.org; dmarc=pass header.from=gmail.com"
        ],
        "Received": [
            "from lists.osmocom.org (lists.osmocom.org [144.76.43.76])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlTYG1QY0z9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 20:21:54 +1000 (AEST)",
            "from lists.osmocom.org (lists.osmocom.org [144.76.43.76])\n\tby lists.osmocom.org (Postfix) with ESMTP id 9992920232;\n\tSun,  3 Sep 2017 10:21:47 +0000 (UTC)",
            "from mail-lf0-x242.google.com (mail-lf0-x242.google.com\n\t[IPv6:2a00:1450:4010:c07::242])\n\tby lists.osmocom.org (Postfix) with ESMTP id 731552021A\n\tfor <openbsc@lists.osmocom.org>; Sun,  3 Sep 2017 10:20:23 +0000 (UTC)",
            "by mail-lf0-x242.google.com with SMTP id y15so2159108lfd.0\n\tfor <openbsc@lists.osmocom.org>; Sun, 03 Sep 2017 03:20:23 -0700 (PDT)",
            "from DELL.lan ([92.127.181.248]) by smtp.gmail.com with ESMTPSA id\n\t207sm663641lfb.12.2017.09.03.03.20.21\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 03 Sep 2017 03:20:22 -0700 (PDT)"
        ],
        "Received-SPF": "Pass (sender SPF authorized) identity=mailfrom;\n\tclient-ip=2a00:1450:4010:c07::242; helo=mail-lf0-x242.google.com;\n\tenvelope-from=axilirator@gmail.com;\n\treceiver=openbsc@lists.osmocom.org ",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=UpLMpLF2TamuuNoVqma/okfxF1eucZtPULPNl8aY2nU=;\n\tb=uVWAB1UVyPQ85V0sfq4NeOwusbfkJcEtQ6hlzFGPP4yjvxF3P/uNIS0QickMUQdzbJ\n\tntSmFrVt4ZDLRZmzgNcRdiJHurBRtyT1bzqoYI7znIQv29Dxv3jXbCfeBlT/WM6vjuGc\n\tx+nhzYAhSDa3Aj/XOgI2gZ6qdZ1pBVSbgENajQRZ4tIPHwdKmey3Aj5+SXiLSFQWMKja\n\tzk6mx9svz9fvqr8a7hd5a2IEr3q7QcQlq80fSAUsGTwmUujVYzceUzsWvVMq0Jopp7Fk\n\tnagMJOFu4EL3B6EAx2UNmNHCszpGvf8JjH9Nqo9/jojyQEUuVhe7mk4uPNQaXIc4+tdY\n\t2jaA==",
        "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=UpLMpLF2TamuuNoVqma/okfxF1eucZtPULPNl8aY2nU=;\n\tb=sHsiCtmriJF/tqMRcqixobu54xBS8K5QZtHYor/Z8vOWqKEMTGWcYk5qH8Z+fWjG5R\n\tAQLdI6zTx392HeqQZsHeDKIcpYUE6HTyYvrH4wCE8CfTxIISFxWEDXdkjQq0P9rIQp6S\n\tf5a9qG8ISXwLgU/0uR/rMmTN/YccKE3ZLFm5LsfCnLPPd2avjeQjbAvap6rtmPmXFzHX\n\tG38jLEeZ8xmyJK8PIo1BL26JBQP34pVDVSjZ8iBzUC7OEh4QN3DHkk64y1OxLIz228YE\n\tzn31KlX8OGToXz80aLSZ31g1ZrTBBvcz2yAtf2uzXE/hgfK6myIafYPmyMF+LTGiml/Y\n\tZlnw==",
        "X-Gm-Message-State": "AHPjjUgIno0s0K+fr69+64G4c3bMTpTZEsmZwDzf+eEz0+naci81gV2i\n\ttNPIqN9+vmCrLHQrdeQ=",
        "X-Google-Smtp-Source": "ADKCNb6VJ0SY+Bu788jABaG0EkrbjfNMFl6wFKDHrGMPSirFBp8Ckua1g/g+8ZL34/942d3ZXiLdhg==",
        "X-Received": "by 10.25.152.205 with SMTP id a196mr2704851lfe.227.1504434022694;\n\tSun, 03 Sep 2017 03:20:22 -0700 (PDT)",
        "From": "Vadim Yanitskiy <axilirator@gmail.com>",
        "To": "openbsc@lists.osmocom.org",
        "Subject": "[PATCH] Fix BENCHMARK_STOP call for AMR and FR",
        "Date": "Sun,  3 Sep 2017 17:20:08 +0700",
        "Message-Id": "<20170903102008.13414-1-axilirator@gmail.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "X-BeenThere": "openbsc@lists.osmocom.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "\"Development of OpenBSC, OsmoBSC, OsmoNITB,\n\tOsmoCSCN\" <openbsc.lists.osmocom.org>",
        "List-Unsubscribe": "<https://lists.osmocom.org/mailman/options/openbsc>,\n\t<mailto:openbsc-request@lists.osmocom.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osmocom.org/pipermail/openbsc/>",
        "List-Post": "<mailto:openbsc@lists.osmocom.org>",
        "List-Help": "<mailto:openbsc-request@lists.osmocom.org?subject=help>",
        "List-Subscribe": "<https://lists.osmocom.org/mailman/listinfo/openbsc>,\n\t<mailto:openbsc-request@lists.osmocom.org?subject=subscribe>",
        "Cc": "axilirator@gmail.com",
        "Errors-To": "openbsc-bounces@lists.osmocom.org",
        "Sender": "\"OpenBSC\" <openbsc-bounces@lists.osmocom.org>"
    },
    "content": "---\n src/codec_amr.c | 4 ++--\n src/codec_fr.c  | 2 +-\n 2 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/src/codec_amr.c b/src/codec_amr.c\nindex 4aae733..ca614ed 100644\n--- a/src/codec_amr.c\n+++ b/src/codec_amr.c\n@@ -78,7 +78,7 @@ codec_amr_encode(void *state, uint8_t *cod, const uint8_t *pcm, unsigned int pcm\n \t\t(unsigned char*) cod,\n \t\t1\n \t);\n-\tBENCHMARK_STOP(CODEC_EFR, 1);\n+\tBENCHMARK_STOP(CODEC_AMR, 1);\n \n \treturn rv;\n }\n@@ -95,7 +95,7 @@ codec_amr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod\n \t\t(short *) pcm,\n \t\t0\n \t);\n-\tBENCHMARK_STOP(CODEC_EFR, 0);\n+\tBENCHMARK_STOP(CODEC_AMR, 0);\n \n \treturn PCM_CANON_LEN;\n }\ndiff --git a/src/codec_fr.c b/src/codec_fr.c\nindex 2ce44b4..917f34b 100644\n--- a/src/codec_fr.c\n+++ b/src/codec_fr.c\n@@ -74,7 +74,7 @@ codec_fr_decode(void *state, uint8_t *pcm, const uint8_t *cod, unsigned int cod_\n \tmemcpy(cod_b, cod, FR_CANON_LEN);\n \tBENCHMARK_START;\n \trc = gsm_decode(gh, (gsm_byte*)cod_b, (gsm_signal*)pcm);\n-\tBENCHMARK_STOP(CODEC_FR, 1);\n+\tBENCHMARK_STOP(CODEC_FR, 0);\n \tif (rc < 0)\n \t\treturn rc;\n \treturn PCM_CANON_LEN;\n",
    "prefixes": []
}