mbox series

[0/5] Update REST API: Add 'project patches as mbox' field

Message ID 20190628114314.10462-1-metepolat2000@gmail.com
Headers show
Series Update REST API: Add 'project patches as mbox' field | expand

Message

Mete Polat June 28, 2019, 11:43 a.m. UTC
Patchwork already has the ability to export patches, series, covers and bundles
as an mbox file. This patch extends that ability to projects as well. Therefore
a new url and api field has been introduced.

New url: project/<project_id>/list/mbox/
New project rest api field: patches_mbox

Like patchwork.example.com/project/<project_id>/list/ the final project.mbox
only includes patches. Careful naming has been made in case the api should
support export of a whole project in the future as well.

Mete Polat (5):
  Add option to get all project patches in one mbox
  Add url to get all project patches in one mbox
  Add api endpoint for project patches as mbox
  Update api documentation for v1.2
  Add release notes: project patches as mbox

 docs/api/rest/index.rst                       |   50 +-
 docs/api/rest/schemas/v1.1.rst                |    4 +-
 docs/api/rest/schemas/v1.2.rst                |    5 +
 docs/api/schemas/generate_schema.py           |    4 +-
 docs/api/schemas/latest/patchwork.yaml        |    7 +-
 docs/api/schemas/patchwork.j2                 |    7 +
 docs/api/schemas/v1.2/patchwork.yaml          | 2319 +++++++++++++++++
 patchwork/api/project.py                      |   11 +-
 patchwork/models.py                           |   25 +-
 patchwork/urls.py                             |    2 +
 patchwork/views/patch.py                      |   12 +
 patchwork/views/utils.py                      |   13 +
 ...project-patches-mbox-623f8c9d4cf6a952.yaml |    6 +
 13 files changed, 2426 insertions(+), 39 deletions(-)
 create mode 100644 docs/api/rest/schemas/v1.2.rst
 create mode 100644 docs/api/schemas/v1.2/patchwork.yaml
 create mode 100644 releasenotes/notes/project-patches-mbox-623f8c9d4cf6a952.yaml