[PATCH v6 00/10] REST API support

Andy Doan andy.doan at linaro.org
Fri Jun 17 07:13:15 AEST 2016


This patchset is inspired by the work done by Damien Lespiau. It creates
a REST API based on the original spec RFC'd by Stephen Finucane. The
only thing I know of that's missing from the patch set are bundles. I
think over time the Series support will make them less important, but we
could always tack bundles on to this if needed.

Changes since v5:

* Move users patch in front of persons to deal with dead-code
* Make all hyperlinked fields have _url in name
* Exclude 'send_notifications' and 'use_tags' from Project
* Add underscores Project fields link_name, list_id, list_email
* Require date when creating a Check

Andy Doan (9):
  REST: Add base configuration hooks for a REST API
  REST: Add Projects to the API
  REST: Add Users to the API
  REST: Add Persons to the API
  REST: Add Patches to the API
  REST: Add Patch Checks to the API
  REST: Add Patch.mbox_url
  REST API: expose patch.checks
  REST: Allow projects to be retrieved by linkname

Stephen Finucane (1):
  docs: Add prototype API specification

 docs/api.yaml                    | 392 ++++++++++++++++++++++++++++++++++
 patchwork/models.py              |   8 +-
 patchwork/rest_serializers.py    | 143 +++++++++++++
 patchwork/settings/base.py       |  15 ++
 patchwork/settings/dev.py        |   1 +
 patchwork/tests/test_rest_api.py | 447 +++++++++++++++++++++++++++++++++++++++
 patchwork/urls.py                |  10 +
 patchwork/views/rest_api.py      | 175 +++++++++++++++
 requirements-test.txt            |   2 +
 9 files changed, 1191 insertions(+), 2 deletions(-)
 create mode 100644 docs/api.yaml
 create mode 100644 patchwork/rest_serializers.py
 create mode 100644 patchwork/tests/test_rest_api.py
 create mode 100644 patchwork/views/rest_api.py

--
2.7.4



More information about the Patchwork mailing list