[PATCH v4 00/10] REST API support

Andy Doan andy.doan at linaro.org
Sat May 21 05:17:02 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 v3:
* User now exposed (needed for patch delegation)
* HyperlinkedModelSerializer used for cleaner interface
* Fix import order in rest_serializers
* Rename unittest methods test_get to test_detail
* Test for excluded patch fields in patch-list
* Break up test_anonymous_writes into test_anonymous_[update|create|delete]
* Handle Persons not linked to a User
* Show username in checks not userid
* Change checks to check in patch response
* Include checks url in patch response

Andy Doan (9):
  REST: Add base configuration hooks for a REST API
  REST: Add Projects to the API
  REST: Add Persons to the API
  REST: Add Users 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    | 115 ++++++++++
 patchwork/settings/base.py       |  15 ++
 patchwork/settings/dev.py        |   1 +
 patchwork/tests/test_rest_api.py | 465 +++++++++++++++++++++++++++++++++++++++
 patchwork/urls.py                |  10 +
 patchwork/views/rest_api.py      | 175 +++++++++++++++
 requirements-test.txt            |   2 +
 9 files changed, 1181 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


More information about the Patchwork mailing list