get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1903838,
    "url": "http://patchwork.ozlabs.org/api/patches/1903838/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/swupdate/patch/20240224140031.9888-2-daniel@braunwarth.dev/",
    "project": {
        "id": 58,
        "url": "http://patchwork.ozlabs.org/api/projects/58/?format=api",
        "name": "swupdate development",
        "link_name": "swupdate",
        "list_id": "swupdate.googlegroups.com",
        "list_email": "swupdate@googlegroups.com",
        "web_url": "https://github.com/sbabic/swupdate",
        "scm_url": "git://github.com/sbabic/swupdate",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20240224140031.9888-2-daniel@braunwarth.dev>",
    "list_archive_url": null,
    "date": "2024-02-24T14:00:27",
    "name": "[1/5] web-app: fix linter warning",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a4e2b770ebad691d1fa92ca4c5c5ec42a28b7e29",
    "submitter": {
        "id": 85609,
        "url": "http://patchwork.ozlabs.org/api/people/85609/?format=api",
        "name": "Daniel Braunwarth",
        "email": "daniel@braunwarth.dev"
    },
    "delegate": {
        "id": 1693,
        "url": "http://patchwork.ozlabs.org/api/users/1693/?format=api",
        "username": "sbabic",
        "first_name": "Stefano",
        "last_name": "Babic",
        "email": "sbabic@denx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/swupdate/patch/20240224140031.9888-2-daniel@braunwarth.dev/mbox/",
    "series": [
        {
            "id": 396467,
            "url": "http://patchwork.ozlabs.org/api/series/396467/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/swupdate/list/?series=396467",
            "date": "2024-02-24T14:00:26",
            "name": "web-app: update web application",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/396467/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1903838/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1903838/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<swupdate+bncBAABBIPN46XAMGQETVNF2QI@googlegroups.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20230601 header.b=QN0L2p4F;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::23d; helo=mail-lj1-x23d.google.com;\n envelope-from=swupdate+bncbaabbipn46xamgqetvnf2qi@googlegroups.com;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from mail-lj1-x23d.google.com (mail-lj1-x23d.google.com\n [IPv6:2a00:1450:4864:20::23d])\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 4ThpSl04jxz23q7\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 25 Feb 2024 01:01:10 +1100 (AEDT)",
            "by mail-lj1-x23d.google.com with SMTP id\n 38308e7fff4ca-2d25a02f48fsf13809601fa.3\n        for <incoming@patchwork.ozlabs.org>;\n Sat, 24 Feb 2024 06:01:10 -0800 (PST)",
            "by 2002:a2e:a497:0:b0:2d2:4ff7:7923 with SMTP id\n h23-20020a2ea497000000b002d24ff77923ls719104lji.1.-pod-prod-02-eu;\n Sat, 24 Feb 2024 06:01:04 -0800 (PST)",
            "from bergelmir.uberspace.de (bergelmir.uberspace.de.\n [185.26.156.157])\n        by gmr-mx.google.com with ESMTPS id\n i10-20020a056512340a00b00512ee654c1csi97273lfr.10.2024.02.24.06.01.03\n        for <swupdate@googlegroups.com>\n        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n        Sat, 24 Feb 2024 06:01:03 -0800 (PST)",
            "(qmail 21533 invoked by uid 989); 24 Feb 2024 14:01:03 -0000",
            "from unknown (HELO unkown) (::1)\n\tby bergelmir.uberspace.de (Haraka/3.0.1) with ESMTPSA;\n Sat, 24 Feb 2024 15:01:03 +0100"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; t=1708783266; cv=pass;\n        d=google.com; s=arc-20160816;\n        b=xLX6hlQdHoqnrWpEM0iyOejSosflMpPT6F/gytlKbRfkNK2ae1g+ZsYgPTiNGpvZ1f\n         4M3eks2m+DhMvfbGgTXGa8mBW8bNmK3aFrYHAGs29yVPjpZbJWW7qbjh5TWeB4Gk63Bk\n         fOIiXHRqH1M8+bntlb1N1Ljlqtvv3UuecbBvhoij4nQeV5rHR0R3gIuuebaG0yTrEozR\n         FRsm4GTwetlblvSaaUcweYXWja3LWOU40kxQjFqHWerF4ci+Z9CqOibbw6GzhQqCLzDc\n         ldK+Zp8C4KKCoRr/ZEVbWzDpWapzR8yj7v9i2CnsscPVHGSEW1JiMJLXsx/laTXwTtnZ\n         7R4Q==",
            "i=1; a=rsa-sha256; t=1708783264; cv=none;\n        d=google.com; s=arc-20160816;\n        b=x1ngRkMjQMc8qJQDpIeGShi1NneSsCcJy1v1Qu/8yACKl6r8s+etwbtaNdkUbH+1ux\n         +yoSWVsky+KQBRv6tCt1ox6hG8oDo+ENruan9c9yDGnc23Cb5jGZintxyoPLNtNhSc5C\n         Vh5v9zxvygNPlTgyxAWN1KorW5E4rqb+KCvlVJT8NDFvVauBIU1YAxdzTUrqLFdz5xwL\n         ERXEmGmmSeM7yACfPMKGCeVYB1wCOtNnxLZr6D+hBNtaHmU63DQs3IgMOFRpL3LJyn6o\n         Z0VeJS1F5L9qx1iXolQ1mriyquRz+1kf0e0uCObPlwiGgNDfa/rv2lll0OqIQUPpW//r\n         Lsfw=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:sender:dkim-signature;\n        bh=uNxm7LnlOF1NynQhqoQ/6OQgUgjENwpR1zlOoylSoUk=;\n        fh=XV1zPUe8b2e/bPRzPjg77hbLz06aGAhRulPiRd+wadg=;\n        b=Asov9MVz/nLLhtVG3RaeCJhxgpIgeAvhdxvlHXfXWHvlbmr5n/vCDfvSxzGqXtckLX\n         M4soj24BmzFIMBDfQW+oo4yG7IvZvFh1MF2yuGDpdNTTFP8OpsKS2HMeAHPYt8aL9G0q\n         wq+WgrZGdfsCR0Y9zvEB15xKCm21PLLGyjgIbTeH/0TUZ9PZG4Dxzc8PjSYP2On8AdzO\n         w5sIE6A5ckGeLPselBNbCVmAfbVY5h7yY9N6AVm2nEQuo6hXTs5phdwLGMgrIC+XNmfm\n         1y8OXLGzqK2oHztJbk31AMFUrdkI+EPy4OOFYYwgRJeSMTWuSAdaSvTtg4mK8jnXghWo\n         uFtA==;\n        darn=patchwork.ozlabs.org",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n        h=dkim-signature:content-transfer-encoding:mime-version:references\n         :in-reply-to:message-id:date:subject:cc:to:from;\n        bh=iqXmDLA9Jimj9P2zEuuM8/jsBqClLIR14MH02D5egns=;\n        fh=BXlwH+1nWuAxJAQnM3fjgjZkXNBtIKsJ4sRu0kRLMwA=;\n        b=BHaVPjQvdbcpaB1JgBGPCaTXwSA4Mu1KNYwf7EqTCYT/8fWaKoVmNZVJCSEb/Fx2Y3\n         /ZR6hs1FkSNZwSPSpWTFLJaIk/2teHvjAj/Sl11nTezzBUfglfbpD70j4kvLH6ibOl6Z\n         KIPBqrIFjGIWSSQhEe6byxxMSDYsE6OWUHTHVB75hdsOeg8HCIwj8xQR5WDYZDLn8xoO\n         X0//PssRxoa8qK6MAum76gZZv2XLkbB8epFSEGUkd8p652bf6Bbx7aOYZdNjSXqrqr2B\n         nTzytC0pS+QC5vteYYWBSy69Qq9DrfRWLn8J8STHXJpVjQ2x9xUnQqIH3l2Z7Z0kpPrn\n         gaYw==;\n        dara=google.com"
        ],
        "ARC-Authentication-Results": [
            "i=2; gmr-mx.google.com;\n       dkim=temperror (no key for signature) header.i=@braunwarth.dev\n header.s=uberspace header.b=EIelr2b0;\n       spf=pass (google.com: domain of daniel@braunwarth.dev designates\n 185.26.156.157 as permitted sender) smtp.mailfrom=daniel@braunwarth.dev",
            "i=1; gmr-mx.google.com;\n       dkim=temperror (no key for signature) header.i=@braunwarth.dev\n header.s=uberspace header.b=EIelr2b0;\n       spf=pass (google.com: domain of daniel@braunwarth.dev designates\n 185.26.156.157 as permitted sender) smtp.mailfrom=daniel@braunwarth.dev"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20230601; t=1708783266; x=1709388066;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:mime-version:references:in-reply-to:message-id\n         :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=uNxm7LnlOF1NynQhqoQ/6OQgUgjENwpR1zlOoylSoUk=;\n        b=QN0L2p4FpYtGR+ZOCoVRXAqqKgmk4SUhnY1PvO99QzPJcC+tFFeuEyCcSyoxiVPnYf\n         93KVVvomY+u+aR7rUR1o/DMB898t+UPN8RcpJV47gE/VhzIf9J6HU46NsMdy+SkDMo+p\n         gn2f6oqEfJ5fnkhVWSc++HHn+wyE+HvWsP6oyZjoOXhJqnUA5AY3I9dS9ZZO8OcUU/Lk\n         imPm7HtvM8UFjnaWHz4hFQP6uv+s4miz8LUqiuA76CeWHzKKd+nKAJiiwbYSht2K6GEV\n         nGvSuzC+kClpFaj7+1KhgReeEFNEYLORnv+IxbGZnIxIOdxv/6mWmqjg7TrK4H7q0WOY\n         D6BQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1708783266; x=1709388066;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender:mime-version\n         :references:in-reply-to:message-id:date:subject:cc:to:from\n         :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=uNxm7LnlOF1NynQhqoQ/6OQgUgjENwpR1zlOoylSoUk=;\n        b=ZrgEjQ14Czq0Ax5/75ktJcen6gCnsZrI3EYa+RBlzGtC4f5iZNqitROBQFKuqhSUEY\n         x3l0nYIH3uWTpEPv5WvAKvOkqeoVhGRBOJ8j+HaiuT4u2TvAR4Zuid+nCEdxe8usWsim\n         eTVTD6kXm6i3RgDH0qxcAtBwJSgzesVfp6nrxN25BBjCL/0PvRCP4t2gmY349B4N6Eo4\n         oTFapP2qbUWCB4c6CriZA8/DOGl0apeKtvMvIS0D+jfhzq1yr7voVcKfhcZLgrP8BZyk\n         ico0lCIErGg3DHtTt/aC55D3mQf7EdQSFrcjBY/3HvFdYXM9mWxgXQqP6lktMUaBmrCH\n         XkQA==",
        "Sender": "swupdate@googlegroups.com",
        "X-Forwarded-Encrypted": "i=2;\n AJvYcCW3dYZ3619psTp0cKkm0o6ZZGLzPhHbHwDb8lSTKTfilOEdkHyPhEzmYtr125tAGPpSrJvvxlkYWNhRiFer/XwFyFa0+adCs+Sr/9Al8g==",
        "X-Gm-Message-State": "AOJu0YzrSiMFEgi6KWxsPFTPaVz1X7SIAf5bvxCLiy/HcbOd9LCGUgn3\n\trcLRWexaldG4S5+U2/CyiZPA5h6XlYpmjzpxsuyqiH4tL9cxjokV",
        "X-Google-Smtp-Source": "\n AGHT+IEMi84XKde3BsMSkxCZjI7wo4OwijOn+pubt0ueTpmSAdTza29EctoggjW40Emu7oPHTiH26Q==",
        "X-Received": [
            "by 2002:a2e:bc1b:0:b0:2d2:2948:afb with SMTP id\n b27-20020a2ebc1b000000b002d229480afbmr1542204ljf.24.1708783266168;\n        Sat, 24 Feb 2024 06:01:06 -0800 (PST)",
            "by 2002:ac2:4c16:0:b0:512:ce7c:c99d with SMTP id\n t22-20020ac24c16000000b00512ce7cc99dmr1455471lfq.18.1708783264075;\n        Sat, 24 Feb 2024 06:01:04 -0800 (PST)"
        ],
        "X-BeenThere": "swupdate@googlegroups.com",
        "Received-SPF": "pass (google.com: domain of daniel@braunwarth.dev designates\n 185.26.156.157 as permitted sender) client-ip=185.26.156.157;",
        "From": "Daniel Braunwarth <daniel@braunwarth.dev>",
        "To": "swupdate@googlegroups.com",
        "Cc": "Daniel Braunwarth <daniel@braunwarth.dev>",
        "Subject": "[swupdate] [PATCH 1/5] web-app: fix linter warning",
        "Date": "Sat, 24 Feb 2024 14:00:27 +0000",
        "Message-ID": "<20240224140031.9888-2-daniel@braunwarth.dev>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20240224140031.9888-1-daniel@braunwarth.dev>",
        "References": "<20240224140031.9888-1-daniel@braunwarth.dev>",
        "MIME-Version": "1.0",
        "X-Rspamd-Bar": "-----",
        "X-Rspamd-Report": "REPLY(-4) BAYES_HAM(-2.999999) MID_CONTAINS_FROM(1)\n MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5)",
        "X-Rspamd-Score": "-5.599999",
        "X-Original-Sender": "daniel@braunwarth.dev",
        "X-Original-Authentication-Results": "gmr-mx.google.com;       dkim=temperror (no\n key for signature) header.i=@braunwarth.dev header.s=uberspace\n header.b=EIelr2b0;\n       spf=pass (google.com: domain of daniel@braunwarth.dev\n designates 185.26.156.157 as permitted sender)\n smtp.mailfrom=daniel@braunwarth.dev",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Precedence": "list",
        "Mailing-list": "list swupdate@googlegroups.com;\n contact swupdate+owners@googlegroups.com",
        "List-ID": "<swupdate.googlegroups.com>",
        "X-Spam-Checked-In-Group": "swupdate@googlegroups.com",
        "X-Google-Group-Id": "605343134186",
        "List-Post": "<https://groups.google.com/group/swupdate/post>,\n <mailto:swupdate@googlegroups.com>",
        "List-Help": "<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>",
        "List-Archive": "<https://groups.google.com/group/swupdate",
        "List-Subscribe": "<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>",
        "List-Unsubscribe": "\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"
    },
    "content": "./swupdate/web-app/js/swupdate.js:136:105: Unnecessary escape character: \\/.\n\nSigned-off-by: Daniel Braunwarth <daniel@braunwarth.dev>\n---\n web-app/js/swupdate.js | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/web-app/js/swupdate.js b/web-app/js/swupdate.js\nindex b2731a3..6661d0a 100755\n--- a/web-app/js/swupdate.js\n+++ b/web-app/js/swupdate.js\n@@ -133,7 +133,7 @@ window.onload = function () {\n \n   if (window.location.protocol === 'https:') { protocol = 'wss:' } else { protocol = 'ws:' }\n \n-  var ws = new WebSocket(protocol + '//' + window.location.host + window.location.pathname.replace(/\\/[^\\/]*$/, '') + '/ws')\n+  var ws = new WebSocket(protocol + '//' + window.location.host + window.location.pathname.replace(/\\/[^/]*$/, '') + '/ws')\n \n   ws.onopen = function (event) {\n     updateStatus(StatusEnum.IDLE)\n",
    "prefixes": [
        "1/5"
    ]
}