From patchwork Fri Jun 28 15:56:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mete Polat X-Patchwork-Id: 1124350 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45b23G39cGz9s7h for ; Sat, 29 Jun 2019 02:17:14 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hDcPgupv"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45b23G0GPXzDqnr for ; Sat, 29 Jun 2019 02:17:14 +1000 (AEST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::443; helo=mail-wr1-x443.google.com; envelope-from=metepolat2000@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hDcPgupv"; dkim-atps=neutral Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45b1cP5gK9zDqwp for ; Sat, 29 Jun 2019 01:57:25 +1000 (AEST) Received: by mail-wr1-x443.google.com with SMTP id k11so6859119wrl.1 for ; Fri, 28 Jun 2019 08:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FatlMsY72rLs1v5nF+AFj8ThHU5cor3rZ91GXV1NeL8=; b=hDcPgupvBL/oksVWj9G7zQK61YQxqUKQZAF/txQ/WujFeEPBYdGlT0FNM2l/cXtH8D vbU9PGZ9W4nBfhEodO119uDcQCHWeV08j4IWeLWem33YtHFR+GCGfT+EZ/JrDU7z0sJR BYgyhashhOgHFjs8xkrc3Bfx3EeSfcxJ/aX4+PTgQJaoJFOWx6tZl3K/Xgwnpb8n8x6S yM9Ap1O8nJNHfpIlwAMAhL+WSXqgGQ6fQVjqlini0DdBc4jVo5POVkbkb/Q+XKWlhjUY WoDdIMzjdWuhzvLvPbzvA8A6Y91cPnztoUQIlr/ADXeogqGrLhSUlO3y4e5NS/llJmg1 Mlmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FatlMsY72rLs1v5nF+AFj8ThHU5cor3rZ91GXV1NeL8=; b=tfpVQihZ/qJ/1bpEd6zTdqow2JGiZoFPC/4sxP3EAc/e6kuUHMri3AVYOgA+80v5ns IeCY5pRaMZRnhVmZ39qgZYlt+EX0NOobxdnQ4IdnjXAV7dpwloAIh2Y9sc4jttoNKns/ NTBFVwO0umGHtfaYTMZcuqrEojFfFjnwKUBQOYAakHcrx4RYjc1dDGQhOtgCJpsYkzxC Yvauk7wGfk62NdhJD4YAiNpxsaBcLkPj2vzjCOTkbNdr8wdwP0Xm7gQpyhwAauFQ8fBZ MmJ1nPIYS1yS7KG+fnjyMQ5ZrcoM5s4edcw6F68SOqO3xUmzGE4Fnro8q3rVZT7XiZa6 uBeQ== X-Gm-Message-State: APjAAAUfYUIg9HkMOeNbJri+7i0297WYxc/GcHkDc2z1AvYnGF5bA8ra I65eUS6g9+0KtSztAdNRhYQlFMZqmdPooA== X-Google-Smtp-Source: APXvYqwVzDCYQCVGs1nQJkAZCxzsHOvd1A4sbQFmvPUfmbTI44oBq9zNuLuX2hkmglA1tVzkDKNDNg== X-Received: by 2002:adf:9d4c:: with SMTP id o12mr8603589wre.340.1561737441886; Fri, 28 Jun 2019 08:57:21 -0700 (PDT) Received: from localhost.localdomain ([193.23.33.53]) by smtp.gmail.com with ESMTPSA id g131sm1603912wmf.37.2019.06.28.08.57.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Jun 2019 08:57:21 -0700 (PDT) From: Mete Polat To: patchwork@lists.ozlabs.org Subject: [PATCH v2 2/5] Add urls to get all project patches in one mbox Date: Fri, 28 Jun 2019 17:56:37 +0200 Message-Id: <20190628155640.24103-3-metepolat2000@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190628155640.24103-1-metepolat2000@gmail.com> References: <20190628155640.24103-1-metepolat2000@gmail.com> MIME-Version: 1.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lukas.bulwahn@gmail.com Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" New api url: api/1.2/ New internal url: project//list/mbox/ Signed-off-by: Mete Polat --- Changes since v1: - Add url pattern for the v1.2 rest api 'patch-list-mbox' is not named 'project-mbox' in order to prevent confusion. While a project also consists of cover letters, those are not intended to be included. patchwork/urls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patchwork/urls.py b/patchwork/urls.py index cfcf04d..18efb63 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -32,6 +32,8 @@ urlpatterns = [ url(r'^$', project_views.project_list, name='project-list'), url(r'^project/(?P[^/]+)/list/$', patch_views.patch_list, name='patch-list'), + url(r'^project/(?P[^/]+)/list/mbox/$', + patch_views.patch_list_mbox, name='patch-list-mbox'), url(r'^project/(?P[^/]+)/bundles/$', bundle_views.bundle_list, name='bundle-list'), url(r'^project/(?P[^/]+)/$', project_views.project_detail, @@ -234,8 +236,8 @@ if settings.ENABLE_REST_API: ] urlpatterns += [ - url(r'^api/(?:(?P(1.0|1.1))/)?', include(api_patterns)), - url(r'^api/(?:(?P1.1)/)?', include(api_1_1_patterns)), + url(r'^api/(?:(?P(1.0|1.1|1.2))/)?', include(api_patterns)), + url(r'^api/(?:(?P(1.1|1.2))/)?', include(api_1_1_patterns)), # token change url(r'^user/generate-token/$', user_views.generate_token,