]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Add Patch Checks to the API
authorAndy Doan <andy.doan@linaro.org>
Thu, 16 Jun 2016 21:13:22 +0000 (16:13 -0500)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 27 Jun 2016 17:20:36 +0000 (18:20 +0100)
commit9e3f27517aedd9214de7f485694a63470efbc2e5
treefcdf26dc942866c12dca544b05bc5cb9b4a72275
parentca2781a8b464e6014415d7375762379066bde1cb
REST: Add Patch Checks to the API

This exports patch checks via the REST API.

The drf-nested-routers package is used to handle the fact Checks are
nested under a Patch.

Security Constraints:
 * Anyone (logged in or not) can read all objects.
 * No one can update/delete objects.
 * Project maintainers and patch owners may create objects.

Signed-off-by: Andy Doan <andy.doan@linaro.org>
Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/rest_serializers.py
patchwork/tests/test_rest_api.py
patchwork/urls.py
patchwork/views/rest_api.py
requirements-test.txt