[RFC 00/11] REST API support

Andy Doan andy.doan at linaro.org
Sat Apr 16 04:23:56 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.

This set is missing a corresponding CLI client. I think it might deserve
its own series. However, I've been testing a new client to make sure the
API is complete enough to be useful:

 http://paste.ubuntu.com/15856213/

Andy Doan (10):
  REST: Add base configuration hooks for a REST API
  REST: Add Projects to the API
  REST: Introduce some helper code
  REST: Add Persons to the API
  REST: Add Patches to the API
  REST: Add Patch Checks to the API
  REST: Add Patch mbox to the API
  REST: Add query parameters to filter patches by
  REST: Allow projects to be retrieved by linkname
  REST: Add States to the API

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

 docs/api.yaml                    | 413 +++++++++++++++++++++++++++++++++++++++
 patchwork/models.py              |   4 +-
 patchwork/settings/base.py       |  11 ++
 patchwork/tests/test_rest_api.py | 355 +++++++++++++++++++++++++++++++++
 patchwork/urls.py                |   7 +
 patchwork/views/rest_api.py      | 225 +++++++++++++++++++++
 requirements-test.txt            |   2 +
 7 files changed, 1015 insertions(+), 2 deletions(-)
 create mode 100644 docs/api.yaml
 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