New api url: api/1.2/ New internal url: project/<project_id>/list/mbox/
Signed-off-by: Mete Polat <metepolat2...@gmail.com> --- 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<project_id>[^/]+)/list/$', patch_views.patch_list, name='patch-list'), + url(r'^project/(?P<project_id>[^/]+)/list/mbox/$', + patch_views.patch_list_mbox, name='patch-list-mbox'), url(r'^project/(?P<project_id>[^/]+)/bundles/$', bundle_views.bundle_list, name='bundle-list'), url(r'^project/(?P<project_id>[^/]+)/$', project_views.project_detail, @@ -234,8 +236,8 @@ if settings.ENABLE_REST_API: ] urlpatterns += [ - url(r'^api/(?:(?P<version>(1.0|1.1))/)?', include(api_patterns)), - url(r'^api/(?:(?P<version>1.1)/)?', include(api_1_1_patterns)), + url(r'^api/(?:(?P<version>(1.0|1.1|1.2))/)?', include(api_patterns)), + url(r'^api/(?:(?P<version>(1.1|1.2))/)?', include(api_1_1_patterns)), # token change url(r'^user/generate-token/$', user_views.generate_token, -- 2.22.0 _______________________________________________ Patchwork mailing list Patchwork@lists.ozlabs.org https://lists.ozlabs.org/listinfo/patchwork