get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221312,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2221312/?format=api",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.0/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260409081401.2060709-5-martin@strongswan.org>",
    "date": "2026-04-09T08:13:59",
    "name": "[v4,4/6] package/pkg-utils: add 'hashes' to show-info",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e3f10604ee0a24da84793e5528969ce901e67bd6",
    "submitter": {
        "id": 736,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/736/?format=api",
        "name": "Martin Willi",
        "email": "martin@strongswan.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260409081401.2060709-5-martin@strongswan.org/mbox/",
    "series": [
        {
            "id": 499252,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/499252/?format=api",
            "date": "2026-04-09T08:13:57",
            "name": "Extend CycloneDX metadata",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/499252/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221312/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<buildroot-bounces@buildroot.org>",
        "X-Original-To": [
            "incoming-buildroot@patchwork.ozlabs.org",
            "buildroot@buildroot.org"
        ],
        "Delivered-To": [
            "patchwork-incoming-buildroot@legolas.ozlabs.org",
            "buildroot@buildroot.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=jvAqfuEB;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frt5940Zmz1yD3\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Thu, 09 Apr 2026 18:14:37 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 0018E40FB2;\n\tThu,  9 Apr 2026 08:14:30 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id FgmxbL1E4ydk; Thu,  9 Apr 2026 08:14:28 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 6A44C40D59;\n\tThu,  9 Apr 2026 08:14:27 +0000 (UTC)",
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n by lists1.osuosl.org (Postfix) with ESMTP id 886151D6\n for <buildroot@buildroot.org>; Thu,  9 Apr 2026 08:14:24 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 6E7B582726\n for <buildroot@buildroot.org>; Thu,  9 Apr 2026 08:14:24 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id lTpA_LlmDj5i for <buildroot@buildroot.org>;\n Thu,  9 Apr 2026 08:14:24 +0000 (UTC)",
            "from mail.codelabs.ch (mail.codelabs.ch [109.202.192.35])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 54DC58254A\n for <buildroot@buildroot.org>; Thu,  9 Apr 2026 08:14:23 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by mail.codelabs.ch (Postfix) with ESMTP id 5F5FF5A0007;\n Thu, 09 Apr 2026 10:14:21 +0200 (CEST)",
            "from mail.codelabs.ch ([127.0.0.1])\n by localhost (fenrir.codelabs.ch [127.0.0.1]) (amavis, port 10024) with ESMTP\n id ef3ijtExo-XM; Thu,  9 Apr 2026 10:14:20 +0200 (CEST)",
            "from zbook.wlp.is (unknown [185.12.128.225])\n by mail.codelabs.ch (Postfix) with ESMTPSA id 0F7F35A0008;\n Thu, 09 Apr 2026 10:14:18 +0200 (CEST)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6A44C40D59",
            "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 54DC58254A"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1775722467;\n\tbh=lrLNVjwW4zLhm2xaDreZ428jtbm9X0N/flOnAQoFcEs=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=jvAqfuEBPPfNE41mbTzFBnWhht2y2wPQmbbEb4VQJ6UVyZhmuEwGY+oXpCEwmoIlo\n\t q3rpQET45vZggfc47SePCsbY4lgfwXnuYDTq0F/en0nM9nmRgsejKVqstsBFHt4v9c\n\t HOhoja3aSJl5LzVmLy2OOJ+NQlUgWkw69L7ePqaA0ABYJIWqE+R7vhJoGmaB6cy+IK\n\t 3LwKxi/n9aet3iXXofpr7LutF70JKxBbus/oQJuKuVelX0fgHn1F6JzJtWniBNLrxN\n\t eybhjgGgbZXbMn8LcGcIqFyRPbCmSu5j7NxnmU0taQNWxwZ2oD5UqJwxNEgNUiA3TH\n\t 8BU/5cUKjwt6A==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=109.202.192.35;\n helo=mail.codelabs.ch; envelope-from=martin@strongswan.org;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp1.osuosl.org 54DC58254A",
        "From": "Martin Willi <martin@strongswan.org>",
        "To": "buildroot@buildroot.org",
        "Cc": "Thomas Perale <thomas.perale@mind.be>",
        "Date": "Thu,  9 Apr 2026 10:13:59 +0200",
        "Message-ID": "<20260409081401.2060709-5-martin@strongswan.org>",
        "In-Reply-To": "<20260409081401.2060709-1-martin@strongswan.org>",
        "References": "<20260409081401.2060709-1-martin@strongswan.org>",
        "MIME-Version": "1.0",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=strongswan.org; s=default; t=1775722458;\n bh=ixONAypPBzyyZRjrUCWtj4/qkow6sKn6rP9vuiQhnrY=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Ydnn16VUIFCZ/aXBgV85CvazqDpuZs3JUDSQ9gSWxRmkt/xPDJLm54pHH48XnoVxV\n Sc2YvhvRLilV+3eC1/eET7b9/3Mx/UWgMjwYv2OrTXEwiUXvCChSH/2Vfv2RVV5zVC\n caXHqyvfx+qhtJby7OM4vWd0sm2aW2FkhCI++JF9x5Y4DMMpjwHqMmP9LPysQfhV2s\n Ty4GL0CuvpQqtcblF1fmuP0FBpeQHvD28y0SGSWCKSul079Scjo8nOyoSZfA29z0z2\n lwAou7Eq2e5gEpx2lffyx9FiF4wpAQ+6qmZXQoJ6GA1jHTU7ZbhlsMPMhlSHKN6dq1\n 27nSD9PcV+N6g==",
        "X-Mailman-Original-Authentication-Results": [
            "smtp1.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=strongswan.org",
            "smtp1.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=strongswan.org header.i=@strongswan.org\n header.a=rsa-sha256 header.s=default header.b=Ydnn16VU"
        ],
        "Subject": "[Buildroot] [PATCH v4 4/6] package/pkg-utils: add 'hashes' to\n show-info",
        "X-BeenThere": "buildroot@buildroot.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.buildroot.org>",
        "List-Unsubscribe": "<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.buildroot.org/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@buildroot.org>",
        "List-Help": "<mailto:buildroot-request@buildroot.org?subject=help>",
        "List-Subscribe": "<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@buildroot.org",
        "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>"
    },
    "content": "Finding the hash file for a package is non-trivial, as they can be in a\n<version> sub-directory or under GLOBAL_PATCH_DIR. To allow other tools\nsuch as utils/generate-cyclonedx to find hash files, expose this information\nfrom show-info. If a package does not provide a hash file, create an\nempty hashes array.\n\nSuggested-by: Thomas Perale <thomas.perale@mind.be>\nSigned-off-by: Martin Willi <martin@strongswan.org>\n---\n package/pkg-utils.mk | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk\nindex 211e681e8f5c..17b0aa176045 100644\n--- a/package/pkg-utils.mk\n+++ b/package/pkg-utils.mk\n@@ -197,6 +197,13 @@ define _json-info-pkg-details\n \t\t},\n \t)\n \t],\n+\t\"hashes\": [\n+\t\t$(call make-comma-list, \\\n+\t\t\t$(foreach hash,$(wildcard $($(1)_HASH_FILES)),\n+\t\t\t\t$(call mk-json-str,$(hash)) \\\n+\t\t\t) \\\n+\t\t)\n+\t],\n \t\"patches\": [\n \t\t$(foreach patch, \\\n \t\t\t$(call pkg-patches-list,$(1)), \\\n",
    "prefixes": [
        "v4",
        "4/6"
    ]
}