[PATCH v5 00/10] REST API support
Andy Doan
andy.doan at linaro.org
Fri May 27 11:12:36 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 v4:
* checks - include user URL rather than name
* user endpoint renamed to users
* user now includes more fields
* expose user as URL in person endpoint
* render tags when viewing a patch (and add test to validate)
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 | 126 ++++++++++
patchwork/settings/base.py | 15 ++
patchwork/settings/dev.py | 1 +
patchwork/tests/test_rest_api.py | 480 +++++++++++++++++++++++++++++++++++++++
patchwork/urls.py | 10 +
patchwork/views/rest_api.py | 175 ++++++++++++++
requirements-test.txt | 2 +
9 files changed, 1207 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